How to Remove Empty Folders After Stopping OneDrive Sync
Question details
Users need to know how to handle and remove local empty folders that remain on their computers after stopping OneDrive synchronization.

- Product
- OneDrive / Microsoft SharePoint / Teams
- Device & OS
- not provided
- Scenario
- Stopping synchronization for a specific cloud folder to disconnect a project or free up local environment space.
- Observed behavior
- The local folder structure remains intact on the computer, leaving potentially thousands of empty folders or online-only file shells that currently require manual deletion.
Before deleting any folders locally, log in to OneDrive or SharePoint via your web browser to verify that your files are safely backed up and available online.
Manually Delete Leftover Folders After Stopping Sync
Because OneDrive intentionally leaves local folder structures intact when synchronization is stopped, manual deletion is the official and most direct solution.
Stopping synchronization severs the connection between your local computer and the cloud. However, Microsoft's expected behavior is to leave the local folder shell behind to prevent accidental data loss. Currently, no automated setting exists to clear these out, so you must delete them yourself.
Click the OneDrive cloud icon in your system tray, go to Settings (gear icon), select the 'Account' tab, and ensure you have successfully clicked 'Stop sync' next to the folder in question.
Press Win + E to open File Explorer and navigate to your OneDrive, SharePoint, or Teams directory where the leftover folder structure is located.
Highlight the main parent folder or the specific empty subfolders you no longer need. Right-click and select 'Delete' (or press the Delete key) to remove them from your local drive.
Experience Hassle-Free Document Management with WPS Office
If dealing with stubborn sync folders and complex cloud settings is slowing you down, try WPS Office. It provides a lightweight, highly compatible alternative to Microsoft Office, complete with seamless and user-friendly built-in cloud storage that won't clutter your hard drive.

Frequently Asked Questions
Why doesn't OneDrive delete the folders automatically when I stop syncing?
Microsoft designed OneDrive to leave the local folder structure intact as a safeguard. This behavior ensures that un-synced data or files pending upload are not accidentally destroyed when the connection to the cloud is severed.
Will deleting these local empty folders delete my files on SharePoint or Teams?
No. As long as you have properly stopped synchronization for that specific folder in your OneDrive settings beforehand, deleting the leftover local copies will not affect the original files stored online in SharePoint or Teams.
Is there a fast way to delete thousands of empty folders left by OneDrive?
While OneDrive has no built-in tool for this, you can open the parent folder in File Explorer, type 'kind:folder' in the search bar to display all subfolders, and then select and delete them in bulk.




