How to Delete an Unsynchronized OneDrive Folder Completely
Question details
The user needs to permanently remove a former employer's disconnected OneDrive folder that is consuming roughly 25 GB of local storage and resisting deletion.
- Product
- Microsoft OneDrive
- Device & OS
- Windows
- Scenario
- Attempting to reclaim hard drive space by deleting a leftover corporate OneDrive folder from a personal laptop after leaving a company.
- Observed behavior
- The 25 GB unsynchronized folder remains on the local drive and prompts access or permission errors when attempting to delete it, even when using an administrator account.
Verify whether the folder actually contains 25 GB of physical files on your local drive or if it is just a ghosted navigation entry in File Explorer, and ensure you have administrative privileges before proceeding.
Take Ownership and Grant Full Control Permissions
This is the most reliable approach when dealing with physical folders that throw 'Access Denied' errors despite having an admin account.
Corporate OneDrive folders are often created with strict security permissions tied to the employer's domain. To delete the files locally, you must force Windows to transfer ownership of the folder to your personal local account.
Right-click the stubborn OneDrive folder in File Explorer and select 'Properties' from the context menu.
Navigate to the 'Security' tab and click the 'Advanced' button near the bottom.
Next to the 'Owner' field at the top, click 'Change'. Enter your current Windows username, click 'Check Names', and then click 'OK'.
Check the box that says 'Replace owner on subcontainers and objects', then click 'Apply' and 'OK'.
Back in the Security tab, click 'Edit'. Select your user account, check the 'Full control' box under Allow, click 'Apply', and then delete the folder normally.
Force Delete Using PowerShell
Use this command-line method to bypass standard Windows Explorer interface restrictions and force-delete the directory and its contents.
Remove OneDrive Namespace Entry from Registry
Use this method if the folder is merely a stubborn navigation link in the File Explorer sidebar rather than a physical directory taking up space.
Manage Your Documents Seamlessly with WPS Office
If you are tired of dealing with complex cloud synchronization issues and stubborn background processes, consider switching to WPS Office. It provides a lightweight, highly compatible, and user-friendly experience for all your document needs without the rigid directory constraints.
- 1. Download the Installer: Visit the official WPS website and download the free WPS Office installation package.
- 2. Install and Customize: Run the installer and customize your preferences, choosing exactly where you want your files saved locally.
- 3. Edit Your Documents: Open your existing Microsoft Office files seamlessly without worrying about forced enterprise cloud syncing.

Frequently Asked Questions
Why does an unsynchronized OneDrive folder still take up 25 GB of local space?
Even if a folder is disconnected or no longer syncing with the cloud, the physical files may have been downloaded to your local drive previously via the 'Always keep on this device' setting, consuming disk space until manually deleted.
Can I delete a stubborn OneDrive folder by booting in Safe Mode?
Yes. Booting Windows in Safe Mode prevents background processes (like leftover OneDrive sync clients or indexing services) from locking the files, allowing you to delete the folder without encountering 'file in use' errors.
What does the 'Access Denied' error mean when deleting old corporate folders?
It typically means your current local user account does not have file ownership or adequate security permissions for the directory, which was originally created and secured by an employer's managed Microsoft account.
Will deleting this local folder delete files from the employer's cloud server?
If the folder is entirely unsynchronized and your account is completely signed out or disconnected from the employer's Microsoft 365 environment, deleting the local files will not affect the files stored remotely on their cloud servers.




