OneDrive comes bundled with the Windows 10 OS. It can be used to store your documents and other data online in the cloud and sync it between your computers. If you are not going to use it and don't wish to see the OneDrive icon in the mavigation pane, here is how to disable it and remove OneDrive from Windows 10 File Explorer.
To remove and hide the OneDrive icon from Windows 10 File Explorer, do the following:
- Open Registry Editor.
- Go to the following Registry key:
HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}\ShellFolder
Tip: See how to jump to the desired Registry key with one click.
You might need to take ownership of this key as described HERE or using the RegOwnershipEx app (recommended). In my case, I already had full access to that key. - Set the value data of the DWORD value Attributes to f090004d.
- If you are running a 64-bit operating system, repeat the steps above for the following Registry key:
HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{B4FB3F98-C1EA-428d-A78A-D1F5659CBA93}\ShellFolder
- Restart Windows 10.
- Open the File Explorer app. The OneDrive icon will disappear from the File Explorer navigation pane:
That's it. To restore the OneDrive icon, set the Attributes value data to f080004d.
Support us
Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options:
Save the bekow txt as ODUnistall.cmd and run it. It will delte your OneDrive. Cheers.
@echo off
cls
set x86=”%SYSTEMROOT%\System32\OneDriveSetup.exe”
set x64=”%SYSTEMROOT%\SysWOW64\OneDriveSetup.exe”
echo Closing OneDrive process.
echo.
taskkill /f /im OneDrive.exe > NUL 2>&1
ping 127.0.0.1 -n 5 > NUL 2>&1
echo Uninstalling OneDrive.
echo.
if exist %x64% (
%x64% /uninstall
) else (
%x86% /uninstall
)
ping 127.0.0.1 -n 5 > NUL 2>&1
echo Removing OneDrive leftovers.
echo.
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.
echo.
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
pause
Thanks, Marcello! Do you have a script to disable the built-in zip for Windows 10 Pro?
This works! Thank you very much!
Is there a way to remove this only for one user account?
I don’t know any way too do it per user.
[HKEY_CURRENT_USER\Software\Classes\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}\ShellFolder]
“Attributes”=dword:f090004d
[HKEY_CURRENT_USER\Software\Classes\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}\ShellFolder]
“Attributes”=dword:f090004d
Thanks, I will try
Works great, thank you, Chris!
Great!
Dear Mr. Tkachenko.
Thank you so much for the apps Winaero asd Personalization as well as many other tips.
Also that would be nice to get back the language switch pane view like in former Windows versions since it’s a bit too large in Win-10))
Best regards!
Thanks Paolo.
Here you go:
https://winaero.com/blog/get-the-old-language-indicator-and-language-bar-in-windows-10/
Yes, for sure! The trick works out well! Much obliged! ))
Great :)
[HKEY_CURRENT_USER\Software\Classes\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}\ShellFolder]
“Attributes”=dword:f090004d
[HKEY_CURRENT_USER\Software\Classes\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}\ShellFolder]
“Attributes”=dword:f090004d
Thanks
Thanks Sergey and Marcello! Much appreciated!
It doesnt seem to work for my 64bit system. i always get an error-message
“Attribute cannot be changed”
Are you sure you took the ownership properly?
I think editing the value of System.IsPinnedToNameSpaceTree to 0 will do the work. At Least, it worked for me.
Thanks for this I don’t use one drive and always wanted to turn it off. Thanks for all of the other tips that you post great stuff.
Thank you for kind words.
Сергей, а Вы уверены, что адрес реестра в статье (п.4) правильный? Правильный в комментариях Криса.
Уверен.
Мой путь влияет на всех пользователей, путь Криса – только на текущего пользователя.
Does anyone know how to remove the Onedrive for Business icon?
To delete the entry/icon for OneDrive for Business from Windows 10 File Explorer:
1. Press the Windows Key and R, then type regedit and click OK to open up the Registry Editor
2. Navigate to HKEY_CLASSES_ROOT\CLSID\{3BA2E6B1-A6A1-CCF6-942C-D370B14D842B}
3. Double-click System.IsPinnedToNamespaceTree
4. Change “value data:” from 1 to 0
5. Click ok
6. Close the Registry Editor
Related, in the Registry Editor steps 3-6 can also be used to achieve the same result for:
OneDrive:
HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}
DropBox (Personal):
HKEY_CLASSES_ROOT\CLSID\{E31EA727-12ED-4702-820C-4B6445F28E1A}
Dropbox (Business):
HKEY_CLASSES_ROOT\CLSID\{E31EA727-12ED-4702-820C-4B6445F28E1B}
HKEY_CLASSES_ROOT\CLSID\{3BA2E6B1-A6A1-CCF6-942C-D370B14D842B} isn’t in my Registry Editor for OneDrive Business. I found the one for OneDrive Personal but it’s the OneDrive Business that I want to stop showing up in my File Explorer. I’m using Windows 10. Any idea’s??? Thanks
Try {04271989-C4D2-4222-E5CA-D6F5552FC898}
I had {04271989-C4D2-4222-E5CA-D6F5552FC898} for OneDrive for School