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.

Comments

banner-Bastien Perez
Bastien Perez's avatar

Freelance Microsoft 365 - Active Directory - Modern Workplace

France