How to Remove a Deleted OneDrive Folder That No Longer Exists
Question details
The user needs to permanently remove a deleted OneDrive folder that remains visible in Windows File Explorer and prevents the deletion of itself or its parent directory.

- Product
- OneDrive
- Device & OS
- Windows
- Scenario
- Attempting to delete a directory or clean up local files, but a previously deleted OneDrive folder persists as a visual artifact or locked file.
- Observed behavior
- A deleted OneDrive folder continues to appear in File Explorer, causing an error and blocking the user from deleting the folder or the overarching parent directory.
Make sure you have closed any applications that might be actively accessing files within the problematic directory, and ensure you remember your Microsoft account credentials before unlinking OneDrive.
Unlink Your OneDrive Account and Delete
Temporarily unlinking your PC stops the background synchronization process, which often releases the lock on phantom folders and allows you to delete them.
When OneDrive encounters a sync glitch, it may retain a placeholder of a deleted folder in File Explorer. Severing the connection temporarily stops OneDrive from protecting or recreating the folder.
Click the OneDrive cloud icon located in your Windows taskbar notification area, click the gear icon (Help & Settings), and select 'Settings'.
Navigate to the 'Account' tab in the settings window, click on the 'Unlink this PC' link, and confirm your choice in the prompt.
Open File Explorer, navigate to the stubborn folder or parent directory, and press the Delete key. It should now be removed without errors.
Open the OneDrive application again, sign in with your Microsoft account, and complete the setup to resume normal file synchronization.

Modify Windows User Profile Permissions
If the folder persists after unlinking, your Windows user profile may lack the necessary 'Modify' permissions to delete the directory.
Experience Seamless Cloud Document Management with WPS Office
If you are tired of dealing with complex folder permissions, sync errors, and phantom directories in OneDrive, consider switching to WPS Office. It provides a lightweight, unified office suite with its own reliable built-in cloud storage.
- 1. Download WPS Office: Visit the official WPS website to download the free, lightweight installer for your Windows PC.
- 2. Sign In to WPS Cloud: Create a free account or log in to instantly activate your personal WPS Cloud storage space.
- 3. Sync Without Hassle: Save your documents directly to WPS Cloud from within the editor, bypassing messy local File Explorer syncing entirely.

Frequently Asked Questions
Why does a deleted OneDrive folder keep reappearing in File Explorer?
This usually occurs due to a synchronization delay or conflict. OneDrive's background processes might restore a cached placeholder of the directory if the original deletion action wasn't successfully communicated to the cloud servers.
How do I fix 'File in Use' errors when trying to delete a OneDrive folder?
This means a background process is currently interacting with the folder. You can resolve this by pausing OneDrive syncing, closing any Microsoft Office applications, or restarting your computer before attempting to delete the folder again.
Will unlinking my OneDrive account delete my local files?
No, unlinking your PC from OneDrive simply severs the connection and stops the synchronization process. Your files and folders remain safely stored on your local hard drive and in your cloud storage until you choose to delete them.




