Remove or Uninstall OneDrive from Windows 10 completely

OneDrive is one of the apps that comes preinstalled in Windows 10. It was also present in Windows 8 as an internal app. Until Windows 7, the OneDrive app was available as a separate app that you had to download so that files could sync with the cloud. With Windows 8, it became a part of operating system. Unlike many other apps, you cannot remove OneDrive via Apps and Features in Settings or Programs and Features, in Control Panel. This post tells how to completely uninstall OneDrive from Windows 10 using command line interface (CLI).

Uninstall OneDrive from Windows 10

If you just wish to disable OneDrive instead of removing it completely, you can do so using Group Policy Editor. Unfortunately, Group Policy Editor (gpedit.msc) is not available for Windows Home edition so you may have to use registry tweak. Read our article on how to Disable OneDrive in Windows 10.

Unlink OneDrive in Windows 10

If you don’t want sync or wish to use another account for syncing with OneDrive, you can simply unlink OneDrive and use another Microsoft account for OneDrive.

To unlink the OneDrive app, right click on the OneDrive icon.

From the context menu that appears, select Settings tab and then click on Unlink OneDrive. If you wish to use another account, keep the box against “Start OneDrive with Windows” checked. If you do not wish to sync anymore, uncheck the box.

Click OK to close the OneDrive properties dialog.

Restart the computer to implement the changes. If you had not unchecked the box saying Start OneDrive with Windows, you would get a sign-on dialog for OneDrive. You can enter credentials for other Microsoft account here.

Uninstall OneDrive in Windows 10

There is no option in the graphical user interface to uninstall OneDrive in Windows 10. You have to do it using the Command Prompt. But before you uninstall OneDrive, you have to stop the process. You can simply click on Exit in OneDrive context menu that comes up when you click the icon in System Tray. You can also go to the Task Manager and right click on OneDrive Process to “Kill it”. Or you can use the Taskkill command to kill the process.

Here is how you uninstall OneDrive in Windows 10 or Windows 8, as well)

  • Press WinKey+R to bring up the Run dialog
  • Type cmd to bring up the command prompt window
  • Type the following to kill the OneDrive process: TASKKILL /f /im OneDrive.exe
  • To uninstall the OneDrive from Windows 10, issue the following commands
    1. If you are on a 32-bit system, type: %systemroot%\System32\OneDriveSetup.exe /uninstall
    2. If you run a 64-bit version, type: %systemroot%\SysWOW64\OneDriveSetup.exe /uninstall

The above command will remove OneDrive from your computer. It will not give you any confirmation though. Note that some folders and files related to the OneDrive.exe process will remain behind after you uninstall it. No changes will happen to the files and folders present in your OneDrive folder.

But if you want to also remove the residual folders, search for OneDrive in “%UserProfile%, “%LocalAppData% and “%ProgramData% folders and delete them.

To remove the residual OneDrive registry keys, Run regedit and delete these two keys, to remove Explorer integration:

  • HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}
  • HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}

If at any time later you feel like installing OneDrive, just open the command prompt window as explained in step 1 to 2 above. Then based on whether yours’ is a 32-bit or 64-bit system, type the following:

  • For 32-bit systems: %systemroot%\System32\OneDriveSetup.exe
  • For 64-bit systems:: %systemroot%\SysWOW64\OneDriveSetup.exe

Upon completing the installation, you should restart the computer so that the OneDrive configuration screen appears.

If you wish, you can also remove the OneDrive icon from Windows 10 Explorer. Go here if you want to uninstall the Microsoft OneDrive app.

Posted by on , in Category Windows with Tags
Arun Kumar is a Microsoft MVP alumnus, obsessed with technology, especially the Internet. He deals with the multimedia content needs of training and corporate houses. Follow him on Twitter @PowercutIN


  1. 64 bit Windows 10 it is sysWOW64 instead of sysWOW

  2. Arun Kumar

    Oh yes. Thanks for noticing that. We’ll correct it straightaway.

  3. Albert Blanton

    The above did not work for me in Windows10 Pro.

  4. I uninstalled onedrive.exe from my windows10 HP-500-147cb and now when I restart it sends no video signal to the monitor. I’ve checked everything as far as the connections and power, (it’s not the monitor) also I checked the signal settings on the monitor itself to make sure it was set to accept the dvi connection.

  5. Wilson King

    For 64-bit systems:: %systemroot%SysWOW64OneDriveSet.exe

    The correct file name is OneDriveSetup.exe, perhaps they have since changed it to this.

  6. That was a typo from our side. Thank you. Corrected.

  7. Ken Shipley

    Arun. Thank you my friend.

    Got a new laptop and went all in with Office 365 and OneDrive and all that. On an older laptop, apparently I’d set up a OneDrive account with – I don’t know. I couldn’t set up my new account without knowing anything about the old account, and Windows/Microsoft was being of zero assistance. Had pretty much given up, but I figured I’d give the interwebs one more shot.

    Command-line uninstall, regedit, command-line install and OneDrive now thinks I’m its best new friend. Forgot all about that old guy that I used to be.

    Had to figure out a way to say thanks.

  8. papali

    From one day to another Onedrive stopped working on my Windows 10 Home 1709 b16299.125, I followed the steps and work perfectly.
    I removed all the onedrive folders as recommended (look carefully for all the folders, there are so many) and then I used ccleaner.
    I re-installed onedrive and the synchronization resumed correctly.

    Thanks very much!!!!

  9. Pál Hársfalvi

    Veri good solution! thank you!

Leave a Reply

Your email address will not be published. Required fields are marked *

4 + 1 =