Forum Discussion
How to delete old OneDrive folder from computer
Locate the folder: Open File Explorer and navigate to the location of your old OneDrive folder. It's typically found under your user folder (e.g., C:\Users<your username>\OneDrive).
Right-click the folder: Once you've found it, right-click on the folder you want to delete.
Select "Delete": In the context menu, choose "Delete".
Confirm deletion (if prompted): A confirmation window might appear asking you to confirm deletion. Click "Yes" or "Delete" to proceed.
Method 2: Using OneDrive Settings
Access OneDrive settings: Right-click on the OneDrive icon in the system tray (usually near the clock in the taskbar) and select "Settings".
Choose "Unlink this PC": In the OneDrive settings window, navigate to the "Account" tab. Click on the button labeled "Unlink this PC".
Choose what to do with files: OneDrive will prompt you about what to do with the existing OneDrive files on your computer. Select the option "Keep files on this device". This will remove the folder from OneDrive but keep the files locally on your computer. Then click "Unlink account".
Important Notes:
Method 1 permanently deletes the folder and its contents from your computer. Make sure you have backups of any important files before proceeding.
Method 2 removes the folder from OneDrive synchronization but keeps the files locally. This is useful if you want to keep the files on your computer but don't want them synced to the cloud anymore.
If the folder won't delete: In some cases, you might encounter issues deleting the folder. This could be because the files are still open in another program or because they are set to "read-only".
Close any programs that might be using the files.
Right-click on the folder and its contents, select "Properties", and under the "General" tab, uncheck the "Read-only" attribute (if it's checked). Click "Apply" and then try deleting again.
By following these methods, you should be able to successfully delete the old OneDrive folder from your computer.
<a href="https://webdevexpert.online">webdevexpert</a>
- Gemo53Aug 28, 2024Brass Contributor
What probably happened is what happened to me : i have disconnected my account in Onedrive while my office account was already disabled. So, the shortcut in explorer was still there, linked to nothing (with no delete in context menu, and delete button disabled).
What i did :
regeditLook in the hkey_current_user\software\microsoft\windows\currentversion\explorer\desktop\namespace and delete the unwanted name
- JanB1Apr 29, 2025Copper Contributor
Thank you, this worked for me as well. How ridiculous, how you have no other way to delete those ghost folders when you don't have access to the original sync location any longer.
I had this issue because I synced some Teams files locally, but then the Teams that I synced from got closed, so OneDrive was not able to sync any longer but the folders also didn't show in the OneDrive client, so there was no way to delete those ghost folders.
- SamCD1798Apr 19, 2025Copper Contributor
I have spent three days looking and your answer is the only one that worked. Thanks so so so much, it was driving me crazy.
- RobertShurtleffFeb 14, 2025Brass Contributor
Thanks! worked perfect!