Personalization Add or Remove OneDrive in Navigation Pane of File Explorer in Windows 11


OneDrive_banner.png

This tutorial will show you how to add or remove OneDrive in the navigation pane of File Explorer for your account or all users in Windows 11.

OneDrive is built-in to Windows 11 by default.

With OneDrive, you can sync files between your computer and the cloud, so you can get to your files from anywhere - your computer, your mobile device, and even through the OneDrive website at OneDrive.com. If you add, change, or delete a file or folder in your OneDrive folder, the file or folder is added, changed, or deleted on the OneDrive website and vice versa. You can work with your synced files directly in File Explorer and access your files even when you’re offline. Whenever you’re online, any changes that you or others make will sync automatically.


Removing OneDrive from the navigation pane of File Explorer does not delete or remove your C:\Users\<username>\OneDrive folder.



Contents

  • Option One: Add or Remove OneDrive in File Explorer Navigation Pane for Current User
  • Option Two: Add or Remove OneDrive in File Explorer Navigation Pane for All Users


EXAMPLE: OneDrive in navigation pane of new File Explorer

OneDrive_top_of_navigation_pane.png





Option One

Add or Remove OneDrive in File Explorer Navigation Pane for Current User


If you turn on Show all folders in the navigation pane when using this option, OneDrive will always show in the navigation pane.


1 Do step 2 (add) or step 3 (remove) below for what you want.

2 Add OneDrive to Navigation Pane in File Explorer

This is the default setting.


A) Click/tap on the Download button below to download the file below, and go to step 4 below.​

Add_OneDrive_to_navigation_pane_in_File_Explorer.reg


(Contents of REG file for reference)
Code:
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Classes\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}]
"System.IsPinnedToNameSpaceTree"=dword:00000001

4 Remove OneDrive from Navigation Pane of File Explorer

A) Click/tap on the Download button below to download the file below, and go to step 5 below.​

Remove_OneDrive_from_navigation_pane_in_File_Explorer.reg


(Contents of REG file for reference)
Code:
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Classes\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}]
"System.IsPinnedToNameSpaceTree"=dword:00000000

4 Save the .reg file to your desktop.

5 Double click/tap on the downloaded .reg file to merge it.

6 When prompted, click/tap on Run, Yes (UAC), Yes, and OK to approve the merge.

7 If File Explorer is open, close and reopen it to apply.

8 You can now delete the downloaded .reg file if you like.




Option Two

Add or Remove OneDrive in File Explorer Navigation Pane for All Users


You must be signed in as an administrator to use this option.

This option will completely remove OneDrive from the File Explorer navigation pane even if Show all folders is turned on.


1 Do step 2 (add) or step 3 (remove) below for what you want.


 2. Allow Add OneDrive to Navigation Pane in File Explorer for All Users

This is the default setting.


A) Click/tap on the Download button below to download the file below, and go to step 4 below.​

Add_OneDrive_to_navigation_pane_in_File_Explorer_for_all_users.reg


(Contents of REG file for reference)
Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}]
@="OneDrive - Personal"
"System.IsPinnedToNameSpaceTree"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{018D5C66-4533-4307-9B53-224DE2ED1FE6}]
@="OneDrive - Personal"
"HiddenByDefault"=-

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\NonEnum]
"{018D5C66-4533-4307-9B53-224DE2ED1FE6}"=-


 3. Remove OneDrive from Navigation Pane in File Explorer for All Users

A) Click/tap on the Download button below to download the file below, and go to step 4 below.​

Remove_OneDrive_from_navigation_pane_in_File_Explorer_for_all_users.reg


(Contents of REG file for reference)
Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}]
@="OneDrive - Personal"
"System.IsPinnedToNameSpaceTree"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{018D5C66-4533-4307-9B53-224DE2ED1FE6}]
@="OneDrive - Personal"
"HiddenByDefault"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\NonEnum]
"{018D5C66-4533-4307-9B53-224DE2ED1FE6}"=dword:00000001

4 Save the .reg file to your desktop.

5 Double click/tap on the downloaded .reg file to merge it.

6 When prompted, click/tap on Run, Yes (UAC), Yes, and OK to approve the merge.

7 You can now delete the downloaded .reg file if you like.


That's it,
Shawn Brink


 

Attachments

Last edited:
Neither method to remove it is working for me, this is for the professional/office version.

Tracking the "System.IsPinnedToNameSpaceTree" key, I'm finding references to onedrive in following places:
Computer\HKEY_CURRENT_USER\Software\Classes\CLSID\{04271989-C4D2-F7DA-CDE0-A1705A5364AA}
Computer\HKEY_CLASSES_ROOT\WOW6432Node\CLSID\{04271989-C4D2-F7DA-CDE0-A1705A5364AA}

Setting that key value to 0 in those does hide the onedrive menace. Hooray :love:

The onedrive folder lives in %USERPROFILE% so I can pin it into quick access without having it stomp all over the explorer window every damn time I open explorer!
 

My Computer

System One

  • OS
    Windows 11
Thanks Barleyman you're a legend. I was trying to get rid of that damn placeholder on a client's PC as they're not using that Onedrive account any more. Your fix finally got rid of it. Much appreciated.
 
Last edited:

My Computer

System One

  • OS
    Win 10, 11, 7 & Linux Mint
I have removed one drive from navigation pane using option 4 but appeared again after some days
This annoying behavior started in Windows 10 after one of the updates and, expectedly, it is carried over to Windows 11. OneDrive disappears from the tree until next restart. At startup Windows changes the `IsPinnedToNameSpaceTree` value to 1 and OneDrive reappears.

So, this method no longer works. And it stopped working a while ago back in Windows 10. (Albeit, admittedly, we have to test both methods. And I haven't tried @Barleyman's update yet.)
 

My Computer

System One

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    CPU
    Intel(R) Core(TM) i7-5930K CPU @ 3.50GHz
    Motherboard
    EVGA X99 Micro
    Graphics Card(s)
    NVIDIA GeForce GTX 970

Latest Support Threads

Back
Top Bottom