How to Delete All Items from a SharePoint List Using Power Automate

How to Delete All Items from a SharePoint List Using Power Automate

Managing SharePoint Lists often requires removing old, duplicate, or unnecessary records. When dealing with hundreds or thousands of records, deleting items manually can be time-consuming and inefficient.

Power Automate provides an efficient way to automatically delete all items from a SharePoint List, helping administrators maintain clean and organized data.

Business Scenario

Suppose your SharePoint List stores temporary records generated during testing. At the end of every month, all records must be removed automatically to prepare the list for new data.

Why Use Power Automate?

Step 1: Create a Flow

  1. Open Power Automate.
  2. Create an Instant or Scheduled Cloud Flow.
  3. Add the required trigger.

Step 2: Get SharePoint List Items

Action:

Get Items

Site Address:
Your SharePoint Site

List Name:
Employee Records

Step 3: Apply to Each

Use an Apply to Each loop to process every SharePoint record returned from Get Items.

Step 4: Delete Item

Action:

Delete Item

Site Address:
Your SharePoint Site

List Name:
Employee Records

ID:
ID from Get Items

Flow Structure

Trigger

↓

Get Items

↓

Apply to Each

↓

Delete Item
Important: Deleting items removes records permanently from the SharePoint List. Always test the flow in a non-production environment before running it against critical business data.

Common Use Cases

Benefits

Key Takeaways