Photo by James Ahlberg / Unsplash

Remove OneDrive icons from an old tenant in Windows Explorer

Bastien Perez
Bastien Perez
· 1 min read

Table of Contents

No matching heading

OneDrive icons from previous tenants are still present in Explorer.

If you sync OneDrive data from a partner organization where you are a guest and you stop sharing, the organization's icons will remain visible in the file explorer on the left.

Removing the old icon

Stop syncing the old organization/tenant

Before removing the icon of an old tenant in the registry, it is important to properly stop the sync in the OneDrive client (if already done, proceed to the next step).

  • Open the OneDrive client
  • Go to Settings
  • Account tab
  • Click on Stop sync for the relevant organization

Removing the icon

To remove the old tenant's icon, navigate to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace and find the key for the organization you want to remove.

Once found, delete the key (the part starting with {). The icon will disappear (in my example, I deleted OldTenant1).

Delete cached data (optional)

Even after stopping synchronization, files already downloaded locally (cache, synchronized data) remain in the corresponding OneDrive folder.

If necessary, you can then manually delete the folder or move it to another location before proceeding to delete the key in the registry.

Enjoyed this article?
If you found it useful, consider supporting my work with a small tip.
Buy me a coffee
WindowsMicrosoft 365

Bastien Perez

Freelance Microsoft 365 - Active Directory - Modern Workplace

Comments