OneDrive File Issues

How to Remove a Deleted OneDrive Folder That No Longer Exists

Maira MehtabMaira Mehtab Nov 3, 2026 869 views

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.

How to Remove a OneDrive Folder That No Longer Exists
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.
Before you start

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.

Solution 1Recommended

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.

1
Open OneDrive Settings

Click the OneDrive cloud icon located in your Windows taskbar notification area, click the gear icon (Help & Settings), and select 'Settings'.

2
Unlink This PC

Navigate to the 'Account' tab in the settings window, click on the 'Unlink this PC' link, and confirm your choice in the prompt.

3
Delete the Folder

Open File Explorer, navigate to the stubborn folder or parent directory, and press the Delete key. It should now be removed without errors.

4
Relink OneDrive

Open the OneDrive application again, sign in with your Microsoft account, and complete the setup to resume normal file synchronization.

Unlink Your OneDrive Account and Delete
Free Microsoft Office alternative

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. 1. Download WPS Office: Visit the official WPS website to download the free, lightweight installer for your Windows PC.
  2. 2. Sign In to WPS Cloud: Create a free account or log in to instantly activate your personal WPS Cloud storage space.
  3. 3. Sync Without Hassle: Save your documents directly to WPS Cloud from within the editor, bypassing messy local File Explorer syncing entirely.
Avoid persistent local ghost folders with the seamless and reliable WPS Cloud synchronization.Fully compatible with all Microsoft Office formats, including Word (.docx), Excel (.xlsx), and PowerPoint (.pptx).Lightweight installation that will not clutter your File Explorer or system background processes.Free and intuitive interface for managing local and cloud documents in one single application.
microsoft office alternative - wps office

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.