If you want to
delete all items in your list, but still need to keep the structure for
Columns, Content Types and Views, you should use this PowerShell script. In
this article, we’ll show you how to delete all items in your list in a few
clicks and without having to log on to your site.
Get file code here: DeleteAllItems.ps1
Example: Below is a document library named
“MyDocument”. Our aim is delete all items.
Step 1: Click here to download: DeleteAllItems.ps1
file with PowerShell.
Input your chosen parameters as pictured below and click Enter.
Step 3: Go to your site and check out the