January 22, 2016

Remove OneDrive from Win 10 & Office 2013

No doubt everyone who has upgraded to Windows 10 is rather annoyed at how ingrained Microsoft's OneDrive is to the OS, especially if you don't use it. There isn't a nice quick and easy way to uninstall it, but if you perform the following commands you will finally be rid of it!

Run the commands in the order below from an Administrator Command Prompt.

Uninstall OneDrive

Terminate any process of OneDrive by running the following command:
          taskkill /f /im OneDrive.exe

Uninstall OneDrive app by running one of the following command:
In 32-bit Windows 10 (x86):
          %SystemRoot%\System32\OneDriveSetup.exe /uninstall

In 64-bit Windows 10 (x64):
          %SystemRoot%\SysWOW64\OneDriveSetup.exe /uninstall

Once you run the above command, OneDrive desktop app is uninstalled completely and cleanly. Most of the time, no progress bar nor confirmation dialog is shown. However, when you search for OneDrive, the app no longer found.

Cleaning and Removing OneDrive Remnants

Since OneDrive is a cloud storage service containing user data, there are folders and files from OneDrive app that are still available on the system as uninstallation does not remove user data.

Run the commands below to clean up those remnants by deleting OneDrive related folders and their contents:

Important: Make sure that the following folders no longer contain any needed user data before proceeding with the following commands.

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

Remove OneDrive in File Explorer Folder Tree Registry Key

OneDrive has registry keys which add itself to the Navigation Pane of File Explorer in Windows 10. After uninstalling OneDrive, these registry keys are orphaned, and can be removed.

         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

Remove OneDrive from Office 2013

OneDrive has its own icon inside the file menu for Office 2013, follow these steps to remove that icon.

Open Word and click on the file menu.
Choose options at the bottom left side of the screen.
Click on the Save menu option
Uncheck the option "Show additional places for saving..."
Check the option "Save to Computer by default"



No comments: