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
How does it work?
Example: Below is a document library named “MyDocument”. Our aim is to delete all items.
Step 1: Click here to download: DeleteAllItems.ps1
Run DeleteAllItems.ps1 file with PowerShell.
Step 2: Input your chosen parameters as pictured below and click Enter.
Step 3: Go to your site and check out the results.
The cloud parts are functional components that extend your SharePoint Online environment in Microsoft 365.
Supports Classic and Modern sites for SharePoint Online/Microsoft 365
Small Business Pricing and Discounts
These web parts extend SharePoint beyond its out-of-the-box capabilities by tailoring it to your requirements with Bamboo Solution’s growing portfolio of SharePoint Web Parts.
SharePoint 2016, 2019, 2022 – Classic Pages Only
Our team of Microsoft 365 Technology Consultants helps you get the most out of your Microsoft technology, we have the best Microsoft 365 talent to streamline your organization.
Consulting to Streamline Your Department