How to remove OneDrive from File Explorer

  1. Use the Windows key + R keyboard shortcut to open the Run command.
  2. Type regedit, and click OK to open the registry.
  3. Browse the following path: HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6} If you’re having difficulties finding this particular entry, do the following:
    1. Use the Ctrl + F keyboard shortcut to open Find.
    2. Copy and paste the Registry entry you’re looking for, in this case: 018D5C66-4533-4307-9B53-224DE2ED1FE6
    3. Click Find Next to start a search.
    This particular entry can be repeated multiple times in the database, as such make sure to click the Find Next button several times until the Status Bar at the bottom of the Registry reads: Computer\HKEY_CLASSES_ROOT\CLSID{018D5C66-4533-4307-9B53-224DE2ED1FE6}.
  4. Select the {018D5C66-4533-4307-9B53-224DE2ED1FE6} key, and on the right side, double-click the System.IsPinnedToNameSpaceTree DWORD.
  5. Change the DWORD value from 1 to 0.
  6. Close the Registry to complete the task.