Thursday, August 15, 2013

SharePoint PowerShell: Delete all list items in one line

Short & handy

(Get-SPWeb http://yoursite).Lists["Listname"].Items | % { $_.ParentList.GetItemById($_.ID).Delete() }

No comments: