How to remove OneDrive icon from Windows 10 File Explorer

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:

  1. Open Registry Editor.
  2. 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.

  3. Set the value data of the DWORD value Attributes to f090004d. windows 10 remove onedrive icon registry
  4. 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
  5. Restart Windows 10.
  6. Open the File Explorer app. The OneDrive icon will disappear from the File Explorer navigation pane: windows 10 remove onedrive icon

That's it. To restore the OneDrive icon, set the Attributes value data to f080004d.

28 thoughts on “How to remove OneDrive icon from Windows 10 File Explorer

  1. Marcello

    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

    Reply
    1. thankya

      Thanks, Marcello! Do you have a script to disable the built-in zip for Windows 10 Pro?

      Reply
  2. thankya

    This works! Thank you very much!

    Reply
  3. MDJ

    Is there a way to remove this only for one user account?

    Reply
    1. Sergey Tkachenko Post author

      I don’t know any way too do it per user.

      Reply
      1. Chris

        [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

        Reply
        1. Sergey Tkachenko Post author

          Thanks, I will try

          Reply
        2. MDJ

          Works great, thank you, Chris!

          Reply
          1. Sergey Tkachenko Post author

            Great!

  4. Paolo Potarsky

    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!

    Reply
    1. Sergey Tkachenko Post author

      Thanks Paolo.
      Here you go:
      https://winaero.com/blog/get-the-old-language-indicator-and-language-bar-in-windows-10/

      Reply
      1. Paolo Potarsky

        Yes, for sure! The trick works out well! Much obliged! ))

        Reply
        1. Sergey Tkachenko Post author

          Great :)

          Reply
  5. Chris

    [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

    Reply
    1. Sergey Tkachenko Post author

      Thanks

      Reply
  6. Shyam

    Thanks Sergey and Marcello! Much appreciated!

    Reply
  7. Lui

    It doesnt seem to work for my 64bit system. i always get an error-message
    “Attribute cannot be changed”

    Reply
    1. Sergey Tkachenko Post author

      Are you sure you took the ownership properly?

      Reply
  8. Sajna

    I think editing the value of System.IsPinnedToNameSpaceTree to 0 will do the work. At Least, it worked for me.

    Reply
  9. Mark

    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.

    Reply
    1. Sergey Tkachenko Post author

      Thank you for kind words.

      Reply
  10. Andrey

    Сергей, а Вы уверены, что адрес реестра в статье (п.4) правильный? Правильный в комментариях Криса.

    Reply
    1. Sergey Tkachenko Post author

      Уверен.
      Мой путь влияет на всех пользователей, путь Криса – только на текущего пользователя.

      Reply
  11. John H

    Does anyone know how to remove the Onedrive for Business icon?

    Reply
    1. Not-a-Bot

      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}

      Reply
      1. Kim

        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

        Reply
        1. Victor Souza

          Try {04271989-C4D2-4222-E5CA-D6F5552FC898}

          Reply
  12. Victor Souza

    I had {04271989-C4D2-4222-E5CA-D6F5552FC898} for OneDrive for School

    Reply

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.