PowerShell script: Deleting specific items in a list on your site

Deleting specific items from a list or lists often requires logging on to your site and moving through each page, deleting manually. Here, we’ll show you how to delete those items with just a few clicks and without having to log on to the site in the first place.

Here is the file code: DeleteRandomizeItems.ps1

How does it work?

Example: You have a Tasks List with 20 items. You decide that you need to delete items #5 through #10. Simply follow these steps:

Step 1:  Click here to download: DeleteRandomizeItems.ps1

Run DeleteRandomizeItems.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.