How to Hide or Show OneDrive in Windows 11
- 12 steps
- Needs administrator rights
- Includes a restart or sign-out
Hiding or showing OneDrive in Windows 11 lets you tidy the left-hand sidebar in File Explorer by removing or restoring the OneDrive entry. OneDrive is Microsoft’s online storage service. It connects to your PC so you can save and open files online.
Turning off this shortcut only removes the icon from File Explorer. Your files stay safe in your user folder, normally 📁C:\
Open Registry Editor (regedit), go to 🗝️HKEY_CURRENT_USER\
How to show or hide the OneDrive folder on the File Explorer navigation pane in 🪟 Windows 11
To hide OneDrive from the left sidebar in File Explorer, you change one value in the Registry Editor. This removes the cloud storage shortcut from your view without deleting files or uninstalling the app. The Registry Editor is included in every edition of Windows 11, Home and Pro alike, so these steps work on any of them. You need to be signed in with an administrator account.

- Press the Windows key, type
regedit, and press Enter. - Click Yes if User Account Control asks whether to allow the app to make changes. You should now see the Windows Registry with a folder tree on the left.
- Go to the key path shown below. You can expand the folders in the left pane one at a time, or paste the path into the address bar at the top of the window.
HKEY_CURRENT_USER\Software\Classes\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}The OneDrive entry is identified by the key {018D5C66-4533-4307-9B53-224DE2ED1FE6}. On most PCs it already exists. If it is missing, create it yourself:
- Right-click the CLSID key in the left pane.
- Select New Key. A new key appears in the list with its name highlighted.
- Type {018D5C66-4533-4307-9B53-224DE2ED1FE6} as the name, including the curly braces, and press Enter.
- Click the new key to select it. The right-hand pane should be empty or show only a (Default) entry.

Now set the value that controls the sidebar entry. Look in the right-hand pane first. If System.IsPinnedToNameSpaceTree is already listed, skip to step 3.
- Right-click any empty space in the right-hand pane and select New DWORD (32-bit) Value. A DWORD is a type of registry entry that holds a number.
- Name the new entry System.IsPinnedToNameSpaceTree and press Enter.
- Double-click System.IsPinnedToNameSpaceTree. The Edit DWORD (32-bit) Value window opens.
- In the Value data box, type 0 to hide the OneDrive folder, or 1 to show it.
- Click OK. The entry should now list your number in the Data column.

Restart your PC to apply the change. If you would rather not restart, open Task Manager, find Windows Explorer in the list, right-click it, and select Restart. The taskbar will flicker, and the sidebar should then update. If OneDrive is still showing or missing, check that the value data really is 0 or 1 and that the key name matches exactly.
To undo the change at any time, go back to the same key, double-click System.IsPinnedToNameSpaceTree, and switch the value between 0 and 1. A registry tweak like this tidies File Explorer for good without removing the cloud sync features.
Conclusion:
- This article has provided step-by-step instructions on how to show or hide the OneDrive folder on the File Explorer navigation pane in Windows 11.
- The tutorial included detailed guidance on using the Windows Registry to make the necessary changes.
- Readers are encouraged to leave comments if they encounter any errors in the instructions or wish to contribute additional insights or tips.
Frequently asked questions
How to hide OneDrive from file explorer?
Open Registry Editor and go to the OneDrive key under CLSID. Set the System.IsPinnedToNameSpaceTree value to 0 to remove the OneDrive icon from the File Explorer sidebar. Your files stay on your PC and in the cloud, and the OneDrive app keeps running.
How to keep OneDrive folcder collapsed by default?
Click the small arrow to the left of OneDrive in the File Explorer navigation pane to collapse it. Windows has no setting that keeps it closed. It may open again after a restart or when you select a file inside OneDrive.
How to hide folders on OneDrive?
Open OneDrive settings, go to Sync and backup, then select Advanced settings and Choose folders. Clear the folders you don't want on this PC. They stay in your OneDrive online, but they are no longer synced to your computer.
How to add OneDrive to navigation pane?
Open Registry Editor, find the OneDrive CLSID key, and set System.IsPinnedToNameSpaceTree to 1. Back up the Registry first, since mistakes there can cause problems. Then restart File Explorer, and OneDrive returns to the sidebar.
How to hide OneDrive folder in file explorer?
Set the System.IsPinnedToNameSpaceTree value to 0 in the OneDrive CLSID key using Registry Editor. The icon disappears from File Explorer. Your files and the OneDrive app are not affected, and you can reverse the change by setting the value back to 1.
How to not show cloud drived in file explorer?
Open the cloud app's own settings and turn off its File Explorer or sidebar option, such as Show in File Explorer. For OneDrive, set System.IsPinnedToNameSpaceTree to 0 in Registry Editor. Each app has its own setting, so check each one you use.
Still have a question?
Answered by AI from this guide. Good questions may be added to this page — please don't include personal details.
Did this guide fix your problem?
About the Author
Richard
Tech Writer, IT Professional
Richard is a writer at Geek Rewind who turns complex IT tasks into clear, step-by-step guides. He draws on years of hands-on experience in system administration and enterprise IT operations, focusing on Windows, Linux and WordPress: the problems people actually run into, and the fixes that work. His server and WordPress guides come from systems he runs himself. Richard builds and maintains the platform behind Geek Rewind, from its Ubuntu servers and Nginx configuration to its custom WordPress plugins. Many new tutorials start with readers' questions, and he's always glad to answer them in the comments.
No comments yet — be the first to share your thoughts!