Skip to main content

Uninstall Windows OneDrive Completely

  1. Press the Windows Key + R shortcut to open the Run command window.
  2. Type in gpedit.msc and click the OK button.
  3. Navigate to Computer Configuration > Administrative Templates > Windows Components > OneDrive folder.
  4. Double-click on Prevent the usage of OneDrive for file storage and Enable it.
  5. In order to remove OneDrive from File Explorer, Open Notepad, save the following code as RemoveOneDrive.reg and then run it.
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}]
"System.IsPinnedToNameSpaceTree"=dword:00000000

[HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}]
"System.IsPinnedToNameSpaceTree"=dword:00000000