SharePoint PowerShell: Delete all list items in one line

Short & handy

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

Comments

Popular posts from this blog

Open SharePoint 2010/2013 Display, Edit, New Forms in Modal Dialogs

Ways to redirect http requests in SharePoint

Using WebDav on IIS 7 to access UNC Paths