logo
search
OneDrive File Issues

How to Delete a OneDrive Folder Containing Over 500,000 Files

Maira MehtabMaira Mehtab Sep 21, 2026 868 views

Question details

The user needs to delete a massive OneDrive folder containing approximately half a million files, as standard deletion methods fail.

Product
Microsoft OneDrive
Device & OS
not provided
Scenario
Attempting to remove an extremely large folder of cache files from cloud storage.
Observed behavior
The web interface limits batch selection to 100 items, and deleting the files locally causes the OneDrive client to freeze indefinitely on the "Processing changes" status.
Before you start

Pause your local OneDrive synchronization before attempting alternative deletion methods to prevent your computer's resources from being consumed by the stuck "Processing changes" loop.

Solution 1Recommended

Use Microsoft Power Automate to Delete the Folder

Create a custom automated flow to bypass interface limits and batch-delete files directly on Microsoft's servers.

OneDrive sync reliability drops significantly when dealing with more than 300,000 items. Relying on the local sync client to process half a million deletions often results in an endless "Processing changes" state.

Using Microsoft Power Automate allows the deletion commands to execute entirely in the cloud, completely bypassing the limitations of your local computer and the web interface.

1
Access Power Automate

Log into your Microsoft 365 account and navigate to the Power Automate dashboard.

2
Create a new flow

Select 'Create' and choose 'Instant cloud flow' to trigger the process manually.

3
Configure OneDrive connectors

Add a 'List files in folder' action targeting the massive cache folder in your OneDrive.

4
Set up the deletion loop

Add an 'Apply to each' control, and insert the 'Delete file' action inside it, mapping it to the file IDs generated from the previous step.

5
Run the flow

Save and test the flow. It will run in the background, gradually clearing out the items without freezing your desktop.

Power Automate Community Help: If you are unfamiliar with building flows, search the Microsoft Power Automate Community forums for pre-built templates specifically designed for bulk deleting OneDrive files.
Free Microsoft Office alternative

Manage Your Documents Seamlessly with WPS Office

While resolving complex cloud synchronization limits can be time-consuming, your daily productivity shouldn't suffer. WPS Office provides a robust, lightweight, and completely free alternative to Microsoft Office, ensuring you can continue editing your important documents locally without relying on heavy cloud sync processes.

  1. 1. Download the software: Visit the official WPS Office website to download the free installer for your operating system.
  2. 2. Install quickly: Run the setup file. The lightweight installation takes only minutes and requires minimal disk space.
  3. 3. Edit documents locally: Open WPS Writer, Spreadsheets, or Presentation to immediately begin working on your Microsoft Office files without waiting for cloud servers.
Fully compatible with Microsoft Office formats including DOCX, XLSX, and PPTX.Lightweight installation that avoids heavy background syncing and resource drain.Easily save and manage files on local storage to prevent cloud upload freezes.Familiar tabbed interface allows for an instant, seamless migration.
QA img-10

Frequently Asked Questions

Why does OneDrive freeze on 'Processing changes' when deleting files?

OneDrive is designed to handle up to 300,000 synced items across all folders. When you attempt to delete hundreds of thousands of files simultaneously, the local sync engine is overwhelmed trying to index and report every individual change to the cloud server, causing it to stall.

Can I use the Command Prompt to delete these files locally?

While you can use commands like 'del' or 'rmdir' in Command Prompt to bypass the Windows File Explorer interface, the OneDrive client will still attempt to process those massive local deletions to the cloud, likely resulting in the same sync freeze.

Is it possible to increase the OneDrive file selection limit on the web?

No, the Microsoft OneDrive web interface has a hardcoded limit that typically restricts batch selections to a small number (such as 100 items) to prevent browser memory crashes and server timeouts.