Fix: Cannot Delete an Empty OneDrive Folder with a Hidden Item
Question details
The user is unable to delete a OneDrive folder that appears to be empty but is restricted due to hidden files, synchronization metadata, or an incomplete sync operation.

- Product
- OneDrive
- Device & OS
- Windows
- Scenario
- Attempting to delete a seemingly empty folder stored in a local OneDrive directory.
- Observed behavior
- The system prevents the deletion of the folder, indicating that it is not completely empty or is currently locked by a synchronization process.
Ensure your computer is connected to a stable internet network so OneDrive can properly communicate with the cloud servers and update folder synchronization statuses.
Deselect the Folder in OneDrive Settings and Delete Online
This is the most effective method for forcing OneDrive to release its hold on the folder by stopping local synchronization.
By deselecting the folder in your account settings, OneDrive removes it from your local File Explorer. You can then safely delete it from the web interface without local file system conflicts.
Click the OneDrive cloud icon located in your Windows taskbar notification area, click the gear (Help & Settings) icon, and select 'Settings'.
Navigate to the 'Account' tab in the settings menu and click on the 'Choose folders' button.
Locate the problematic folder in the list, uncheck the box next to it, and click 'OK'. The folder will instantly disappear from your local File Explorer.
Open your web browser, log in to the OneDrive website, locate the folder (which should now display as having zero items), and delete it. Empty the online Recycle Bin if necessary.

Enable Hidden Files in File Explorer
Reveal hidden system files or metadata that are secretly occupying space inside the folder and preventing its deletion.
Wait for OneDrive Synchronization to Finish
If OneDrive is actively processing changes in the background, it locks the folder to prevent data corruption.
Manage Your Documents Seamlessly with WPS Office
While troubleshooting OneDrive synchronization issues, consider upgrading your productivity suite to WPS Office. It provides a lightweight, highly compatible alternative to Microsoft Office, complete with its own robust WPS Cloud storage solution to keep your files safe, organized, and accessible without frustrating sync locks.

Frequently Asked Questions
Why does a OneDrive folder say it is not empty when no files are visible?
The folder likely contains hidden system files, temporary synchronization files, or metadata that are not visible by default in Windows File Explorer. Enabling 'Hidden items' in the View tab can reveal these files.
What happens when I deselect a folder in OneDrive settings?
Deselecting a folder stops it from synchronizing to your local computer and removes it from File Explorer to free up space. However, the folder and its contents remain safe in your online OneDrive cloud storage until you manually delete them via the web interface.
Can a paused OneDrive sync prevent folder deletion?
Yes. If OneDrive synchronization is paused, stuck, or actively processing changes, the Windows file system locks the folder to prevent potential data loss or corruption. You must resume and complete the sync process before the system allows you to delete the folder.




