How to hide OneDrive in File Explorer Windows 11
Do you want to remove OneDrive from the sidebar to clean up your view? This guide shows you how to stop OneDrive from showing in File Explorer. We will cover simple settings and advanced registry tweaks.
Why do this?
You might want to hide the folder if you do not use the service. It keeps your sidebar tidy. It also helps you focus on local files instead of cloud storage.
What happens when done?
The OneDrive shortcut will disappear from the left sidebar. This does not delete your files. Your data stays safe in your local folder at C:\Users\GenericUser\OneDrive. You can still access your files by opening the folder directly.

Non-Destructive Alternative: Unlink Microsoft Account
Before editing the registry, try unlinking your account. This stops OneDrive from syncing without deleting files.
- Click the OneDrive cloud icon in your taskbar.
- Click the gear icon and select Settings.
- Go to the Account tab.
- Click Unlink this PC.
How to hide OneDrive using Registry Editor
Warning: Editing the registry can cause system issues if done incorrectly. Always back up your registry before making changes. You need Administrator privileges for this.

- Press Win + R, type regedit, and press Enter.
- Navigate to:
HKEY_CURRENT_USER\Software\Classes\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6} - If the key does not exist, right-click CLSID and create it.
- Right-click in the right pane and select New > DWORD (32-bit) Value.
- Name it
System.IsPinnedToNameSpaceTree. - Double-click it and set the value to 0 to hide it.

Using Group Policy Editor (GPO)
If you have Windows 11 Pro, you can use the Group Policy Editor to disable OneDrive integration permanently.
- Press Win + R, type gpedit.msc, and press Enter.
- Go to Computer Configuration > Administrative Templates > Windows Components > OneDrive.
- Double-click Prevent the usage of OneDrive for file storage.
- Select Enabled and click OK.
How to restore OneDrive
If you change your mind, simply go back to the registry key mentioned above. Change the System.IsPinnedToNameSpaceTree value back to 1. Restart your computer to see the icon return to your sidebar.
Summary
You can easily hide OneDrive from your File Explorer by unlinking your account or modifying the System.IsPinnedToNameSpaceTree registry key. These steps help you declutter your workspace while keeping your files safe. For more tips, check out our guides on setting up OneDrive or using File Explorer.
Does removing OneDrive from the navigation pane delete my files?
No, removing the shortcut from the navigation pane does not delete your files. It only hides the link from your File Explorer sidebar. Your actual data remains stored safely in your local OneDrive folder. You can still access your documents and photos at any time by navigating to the folder path directly.
Why does Windows 11 keep adding OneDrive back to the sidebar?
Windows 11 often resets certain registry keys during major system updates or when the OneDrive app updates itself. If the app is still running in the background, it may re-register its shortcut in the navigation pane. Disabling the app from startup or using Group Policy can help prevent this behavior.
Was this guide helpful?
Leave a Reply Cancel reply