logo
search
OneDrive File Issues

How to Remove Empty Folders After Stopping OneDrive Sync

Emma BrownEmma Brown Oct 20, 2026 868 views

Question details

Users need to know how to handle and remove local empty folders that remain on their computers after stopping OneDrive synchronization.

How to Remove Empty Folders After Stopping OneDrive Sync
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 you start

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.

Solution 1Recommended

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.

1
Verify Sync is Stopped

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.

2
Navigate to the Directory

Press Win + E to open File Explorer and navigate to your OneDrive, SharePoint, or Teams directory where the leftover folder structure is located.

3
Delete the Folders

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.

Expected System Behavior: OneDrive currently does not offer an automatic cleanup feature for local folders after stopping synchronization. Manual removal is required even if files were previously marked as online-only.
Free Microsoft Office alternative

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.

Fully compatible with Microsoft Word, Excel, and PowerPoint file formats.Built-in WPS Cloud offers straightforward, reliable file syncing without leaving thousands of empty local folders.Lightweight installation that runs smoothly on almost any device.Free to download and use with a familiar, tabbed user interface.
microsoft office alternative - wps office

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.