How to Delete a OneDrive Folder Containing Over 500,000 Files
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.
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.
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.
Log into your Microsoft 365 account and navigate to the Power Automate dashboard.
Select 'Create' and choose 'Instant cloud flow' to trigger the process manually.
Add a 'List files in folder' action targeting the massive cache folder in your OneDrive.
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.
Save and test the flow. It will run in the background, gradually clearing out the items without freezing your desktop.
Request Assistance from Your Microsoft 365 Administrator
Have your IT administrator open a backend service request to forcibly remove the folder.
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. Download the software: Visit the official WPS Office website to download the free installer for your operating system.
- 2. Install quickly: Run the setup file. The lightweight installation takes only minutes and requires minimal disk space.
- 3. Edit documents locally: Open WPS Writer, Spreadsheets, or Presentation to immediately begin working on your Microsoft Office files without waiting for cloud servers.

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.




