I don't use or want to use OneDrive, but after upgrading to Windows 10 it's been installed automatically and added to the sidebar of every explorer window:

OneDrive in Explorer sidebar

I can't seem to figure out how to get rid of it. I can't uninstall it like a normal app, and I can't seem to unpin it in Explorer's options.

I tried following one of Microsoft's guides (requires login) to getting rid of it, but that seems to only remove stored OneDrive files.

I've also tried following another Microsoft Guide and SU answer, but I can't seem to edit group policies on my computer (maybe because I upgraded from Win7 Home Premium?).

All I would really like is to be able to remove the OneDrive shortcut from my explorer sidebar, though being able to uninstall OneDrive would be a bonus.

I'm not sure what I should try now. Is there a way to remove OneDrive from Windows 10?


11 Answers 11


EDIT: New technique.

Since 2 upgrades ago, you can now simply uninstall Microsoft OneDrive if you don't plan to use it.

To do so, open Settings->Apps and from the list, search for "Microsoft OneDrive", then click uninstall.

Because this is an app not a program, it is not listed as program in the Control Panel.

EDIT: Small addition to this update: Given that you actually uninstall the app, it seems that the app is not being reinstalled after an upgrade, whereas with the techniques below, it will come back as the app itself is being reinstalled. So if you uninstall OneDrive, it will be gone until you reinstall it through the Windows Store.

--------[ Old answer below]-------------------------

OneDrive also was part of windows 8, except that there, it was hidden. That gave much more trouble for when you actually wanted to use it vs not wanting to use it.

But it seems that disabling (not entirely getting rid of) is not that hard.

To stop OneDrive from starting at boot

Remove its startup entry from the registry, which is located here:


If you delete the OneDrive entry there, and either use task manager to kill the process, right click the icon and choose exit or reboot, OneDrive will not be loaded anymore.

Now you can remove the OneDrive folder located at C:\Users\%USERNAME%\OneDrive

To remove OneDrive from the Explorer sidebar

With a bit of searching and digging, I found this key: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{A52BBA46-E9E1-435f-B3D9-28DAA648C0F6}] which lead me to the relevant CLSID, which is: {018D5C66-4533-4307-9B53-224DE2ED1FE6}

So the registry key you want to remove is this one:


If you go to this key, it should say OneDrive and should have the following subfolders: DefaultIcon, InProcServer32, Instance and ShellFolder, where Instance has another subfolder named InitPropertyBag.

For reference, there is a Microsoft answer that addresses this: https://answers.microsoft.com/en-us/msoffice/forum/all/how-to-turn-offhide-onedrive-personal-but-leave/bea35a10-78e9-4b35-a5df-c69060ad509b/#threadSummaryAnswersSection - if you can't find the right registry key, this will help identify.

  • While this will prevent it from starting up, it will not remove OneDrive from the Explorer sidebar, which was the main ask of my OP.
    – RedRiderX
    Aug 8, 2015 at 12:47
  • The idea is, that once OneDrive is not loaded anymore, its not in use, and as such you should be able to manually remove the folder. But it indeed does not remove it from the treeview on the left. Should be a registry setting too. I'll edit my answer if I can find it.
    – LPChip
    Aug 8, 2015 at 18:59
  • @RedRiderX There you go, edited the answer, giving you the info you are seeking. :) You're welcome. Have fun with it. :)
    – LPChip
    Aug 8, 2015 at 19:28
  • @RedRiderX Are you having any luck with this or do you need more help?
    – LPChip
    Aug 9, 2015 at 19:55
  • 2
    Adding to the last bit of the answer (To remove OneDrive from the Explorer sidebar), you don't need to delete the registry key - simply set 'System.IsPinnedToNameSpaceTree' value to 0 (zero) and it'll remove the shortcut. Not reboot necessary.
    – Sach
    Apr 30, 2021 at 15:56

Open notepad and copy/paste next code:

@echo off

set x86="%SYSTEMROOT%\System32\OneDriveSetup.exe"
set x64="%SYSTEMROOT%\SysWOW64\OneDriveSetup.exe"

echo Closing OneDrive process.
taskkill /f /im OneDrive.exe > NUL 2>&1
ping -n 5 > NUL 2>&1

echo Uninstalling OneDrive.
if exist %x64% (
%x64% /uninstall
) else (
%x86% /uninstall
ping -n 5 > NUL 2>&1

echo Removing OneDrive leftovers.
rd "%USERPROFILE%\OneDrive" /Q /S > NUL 2>&1
rd "C:\OneDriveTemp" /Q /S > NUL 2>&1
rd "%LOCALAPPDATA%\Microsoft\OneDrive" /Q /S > NUL 2>&1
rd "%PROGRAMDATA%\Microsoft OneDrive" /Q /S > NUL 2>&1 

echo Removeing OneDrive from the Explorer Side Panel.
REG DELETE "HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f > NUL 2>&1
REG DELETE "HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f > NUL 2>&1


Save it like removeOneNote.bat and run it as administrator (by right click on file).

I found answer here, and it works for me.

  • 1
    Last windows 10 update brign oneDrive back. And this method it's still removes oneDrive after windows update. May 25, 2017 at 13:03
  • 1
    I second @Vladimir Ishenko ..... also just successfully re-ran this exact script following latest Update.
    – Mike M
    Jun 2, 2017 at 8:47
  • This also removes the OneDrive folder from the "Browse for folder" dialog in Win10.
    – Jeff
    Apr 29, 2018 at 17:53
  • This should be the accepted answer. May 3, 2018 at 16:32

Noticed that this had popped up again (in a broken state) after the recent Fall Creators Update. Tried the existing tips from several places, but they still weren't working. Eventually went on the hunt for the relevant CLSID (this ugly beast: {018D5C66-4533-4307-9B53-224DE2ED1FE6}) and found it here:


Delete that key and it's gone. I knew it was the right place because Dropbox (which I do want) appeared in the same location as a separate key.

Just in case anyone else gets this annoying thing showing up again.


I was searching for an answer to this question as well, preparing Windows 10 for possible deployment on our network. I found a setting tweak using the Group Policy Editor on this page which we are instituting as part of our deployment images.

  • 3
    Please add the relevant content of the linked page to make your response a stand alone answer, thanks.
    – albal
    Aug 25, 2015 at 20:50

According to asd, you can disable OneDrive with the Windows 10 Group Policy Editor.

gpedit.msc -> Local Computer Policy\Computer Configuration\Administrative Templates\Windows Components\OneDrive

Enable "Prevent the usage of OneDrive for file storage". This will disable and remove everything after a restart

*The Group Policy Editor isn't available on Windows 10 Home Edition by default. However, it can be installed manually.


To remove specific OneDrive folders instead of all of Onedrive (also works for DropBox folders) from the file explorer, open regedit program and navigate to


This folder will have a registry key for each individual OneDrive (and DropBox) folder that is displayed in the file explorer. Simply delete the ones you don't want to show up.


For the record, I created an application that it does that (including source code, executable, etc.)


In sum. There is a registry in Windows that it could be called:

  • Machine\HKEY_CLASSES_ROOT\CLSID{018D5C66-4533-4307-9B53-224DE2ED1FE6} (OneDrive Personal)


  • Machine\HKEY_CLASSES_ROOT\CLSID{04271989-C4D2-BF67-95FE-120D1FD1EAE2} (OneDrive business)

However, those class-id could change or have a different value.

Inside them, there is a value called:

  • System.IsPinnedToNameSpaceTree

If you check to 0, then you can hide the application. And it not only works with OneDrive but also with iCloud, Adobe Cloud, Dropbox and some others.


  • This is the only answer that references OneDrive for business which is useful and is what I needed.
    – bdiamante
    Oct 7, 2022 at 19:30

If you can't find that registry key that starts with {018D}, I found another registry key that contains the same attributes:


I found this by doing Ctrl + F and searching for the keyword "onedrive".

Hope this helps.


If you want to unpin OneDrive from Explorer, you can tell it to not be pinned to the Explorer folder tree:

Bonus Chatter: Removing Quick access from Explorer's folder tree

Explorer has a HubMode that removes Quick access:

  • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer
  • HubMode: DWORD = 1


For me, I was able to remove the OneDrive reference from File Explorer by removing this key:


I am running Win 10 Creators Edition Pro. I had uninstalled OneDrive but it left the folder name in File Explorer. I was looking for a way to remove it and this worked.


Find this: Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\ (serach for the onedrive folder name you want to remove and delete it

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .