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


OneDrive_header.webp

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 If you have Smart App Control turned on, you will need to unblock the downloaded REG file.

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

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

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

9 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 If you have Smart App Control turned on, you will need to unblock the downloaded REG file.

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

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

8 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
I have this new folder here ...
Screenshot_8.webp


No delete option ... how to remove ??

EDIT: Ok, I found this which did the trick

 
Last edited:

My Computer

System One

  • OS
    Win11 25H2 26200.7309
    Computer type
    PC/Desktop
    Manufacturer/Model
    Gigabyte
    CPU
    i5
    Memory
    16GB
    Graphics Card(s)
    RX580
Remove_OneDrive_from_navigation_pane_in_File_Explorer.reg doesn't persist
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    Dell Latitude
Remove_OneDrive_from_navigation_pane_in_File_Explorer.reg doesn't persist

Hello, :-)

How does option two work for you instead?
 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    TerraMaster F8 SSD Plus NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Amazon Basics Wired Full Keyboard MD005
    Mouse
    Logitech MX Master 4
    Internet Speed
    2 Gbps Download and 100 Mbps Upload
    Browser
    Chrome and Edge
    Antivirus
    Microsoft Defender
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    CyberPower CP1500PFCLCD
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Surface Laptop 7 Copilot+ PC
    CPU
    Snapdragon X Elite (12 core) 3.42 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Monitor(s) Displays
    15" HDR
    Screen Resolution
    2496 x 1664
    Hard Drives
    1 TB SSD
    Internet Speed
    Wi-Fi 7 and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Microsoft Defender
Back
Top Bottom