So you don’t use OneDrive and you want to remove it completely?

As you know OneDrive (cloud service provided by Microsoft) comes with every copy of Windows 10. Each OneDrive account is linked to a Microsoft account and is linked by default.

However, there are lot of other cloud alternatives out there that users prefer using over OneDrive (e.g Google Drive, Dropbox, Apple iCloud Drive, Box and others…)

For some reason that we don’t know yet, Microsoft made it so you can’t uninstall OneDrive from Windows 10, in other words they force you to use this service eather you like it or not…

Also you can’t uninstall OneDrive from the “Programs and settings” window.

In this tutorial you will discover with me the easiest trick to uninstall OneDrive completely without leaving any traces.

Let’s go!

Delete OneDrive from Windows 10

1. Uninstall OneDrive completely

To uninstall OneDrive from your Windows 10 computer open the command prompt using the following keyboard shortcuts:Win+X then press C

You can also open the command prompt using Run (Win+R) and type CMD.

To finish all the processes of OneDrive run this command in the black command prompt:

taskkill /f /im OneDrive.exe

Now we can uninstall OneDrive after stopping it from working.

If you are using a 64-bit Windows 10 then run the command below:

%SystemRoot%\SysWOW64\OneDriveSetup.exe /uninstall

And if you are running a 32-bit version of Windows 10 then use this command instead:

%SystemRoot%\System32\OneDriveSetup.exe /uninstall

Once the command above is launched, OneDrive will be uninstalled completely.

You won’t see any progress during the uninstall’ process for most cases, if you want to check if the application is still installed check the Start menu ; you won’t find it there…

But the icon will still exist in the File Explorer Window, we can remove it using the Registry Editor.

2. Remove OneDrive from File Explorer

To delete the OneDrive icon present in the File Explorer we will need to remove some keys in the Registry.

To do this manually open Run (Win+R), and put in this command: REGEDIT

Follow theses paths and remove the file System.IsPinnedToNameSpaceTree or give it the value 0

Windows 10 32-bit:

"HKEY_CLASSES_ROOT" > "CLSID" > "{018D5C66-4533-4307-9B53-224DE2ED1FE6}"

Windows 10 64-bit:

"HKEY_CLASSES_ROOT" > "Wow6432Node" > "CLSID" > "{018D5C66-4533-4307-9B53-224DE2ED1FE6}"

Or if you are lazy (as I am) please use theses two commands in Run:

REG Delete "HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f

REG Delete "HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f

3. Clean-up OneDrive data

Even after uninstalling OneDrive, the folders will still exist.

If you don’t plan on re-installing it in the future then please run theses commands in the command prompt:

rd "%UserProfile%\OneDrive" /Q /S
rd "%LocalAppData%\Microsoft\OneDrive" /Q /S
rd "%ProgramData%\Microsoft OneDrive" /Q /S
rd "C:\OneDriveTemp" /Q /S

4. How to Re-Install OneDrive

If you want to re-install OneDrive you can run the following commands:

Windows 10 64-bit:


Windows 10 32-bit:


In case you can’t fine the Setup file due to removing the Folders in the 3rd part of this tutorial then you can Download the file OneDriveSetup.exe from the official website, but choose Other Device and click on “Windows 8.1” instead of “Windows 10“, then click “Download“.


And there you go, you have just discovered how to uninstall, remove and reinstall OneDrive on your Windows 10 computer!

If you have any questions about Windows 10 feel free to submit a comment in the section below, thanks a lot.

Soufiane –