Forum Discussion
How to delete old OneDrive folder from computer
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 :
regedit
Look in the hkey_current_user\software\microsoft\windows\currentversion\explorer\desktop\namespace and delete the unwanted name
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.