Logo
How to Remove OneDrive from File Explorer in Windows 10/11
Office 365

How to Remove OneDrive from File Explorer in Windows 10/11

2 July 2020 By Hal Sclater

If you have previously logged into Office 365 accounts for different business or school tenants, they may remain even when you sign out. This is how to remove old OneDrive accounts from File Explorer in Windows.

  1. Exit OneDrive by right clicking on the OneDrive system tray icon > Close OneDrive.
  2. Open the Registry Editor by pressing Windows + R and entering regedit.
  3. Navigate to HKEY_CURRENT_USER > Software > Microsoft > OneDrive > Accounts > BusinessName.
  4. Find the account by looking at the UserEmail value. Delete the entire folder containing that key.
  5. Navigate to HKEY_CLASSES_ROOT > CLSID. Search (CTRL+F) for keyword: OneDrive.
  6. Find the one that has the company name as the Default value.
  7. Modify the System.IsPinnedToNameSpaceTree value to 0.

If the icon is still visible, restart your computer.