Remove OneDrive from Explorer Pane: Step-by-Step
In this article
This guide shows you how to remove the OneDrive icon from the navigation pane in Windows File Explorer. You'll learn two clean methods: one using the Registry Editor (permanent, for all users) and one using Group Policy (for Windows Pro/Enterprise). No files are deleted; OneDrive remains fully functional.
What You'll Need
- Administrator account on your Windows PC (to edit the registry or group policy).
- OneDrive closed or at least not syncing critical files (just to be safe).
- Backup of your registry (optional but recommended before editing).
Step-by-Step
Method 1: Using Registry Editor (Works on all Windows editions)
- Press Win + R to open the Run dialog.
- Type
regeditand press Enter. If prompted by User Account Control, click Yes. - Navigate to the following path:
HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6} - Right-click on the
{018D5C66-4533-4307-9B53-224DE2ED1FE6}folder and select Permissions… - Click Advanced at the bottom.
- At the top, next to “Owner:”, click Change.
- Type
Administratorsin the “Enter the object name to select” box, then click Check Names and OK. - Check the box Replace owner on subcontainers and objects and click OK.
- Back in the Permissions dialog, select Administrators and check Full Control under “Allow”. Click OK.
- Now, in the right pane, double-click the System.IsPinnedToNameSpaceTree value.
- Change the value data from
1to0and click OK. - Close Registry Editor and restart File Explorer (or restart your PC). The OneDrive icon should be gone from the navigation pane.
Method 2: Using Group Policy (Windows Pro, Enterprise, Education)
- Press Win + R, type
gpedit.msc, and press Enter. - Navigate to:
Computer Configuration → Administrative Templates → Windows Components → OneDrive - Double-click Prevent the usage of OneDrive for file storage.
- Select Enabled, then click OK.
- Close Group Policy Editor and restart File Explorer.
Common Mistakes
- Not changing the owner: Without taking ownership, you cannot modify the registry key. The permissions step is essential.
- Editing the wrong CLSID: The OneDrive CLSID is exactly
{018D5C66-4533-4307-9B53-224DE2ED1FE6}. Double-check you haven't selected another GUID. - Forgetting to restart File Explorer: The change won't appear until you restart Explorer or reboot.
- Using Group Policy on Windows Home: gpedit.msc is not available on Home editions; use the registry method instead.
Tips
- To revert the change, simply set the registry value back to
1or set the Group Policy to Not Configured. - If you want to keep OneDrive but hide it only from the navigation pane, the registry method is the least invasive.
- You can also use the “Hide” option in OneDrive's own settings (if available) to remove it from File Explorer, but that may also disable other features.
Troubleshooting
Icon still shows after following the steps:
- Make sure you changed the value to
0and not just closed the editor. Reopen the key to verify. - Restart File Explorer: Right-click the taskbar, select Task Manager, find “Windows Explorer”, right-click and choose Restart.
- If using Group Policy, ensure the policy is actually enabled and that you have the correct policy name.
Access denied when editing registry:
- Ensure you are logged in as an administrator.
- Repeat the ownership steps carefully – you must replace the owner on subcontainers and objects.
OneDrive disappears from other places (like system tray):
- The registry method only hides the File Explorer icon; it should not affect OneDrive's functionality. If the system tray icon disappears, check OneDrive settings to re-enable it.
Frequently Asked Questions
Will this delete my OneDrive files?
No. This only removes the shortcut from the navigation pane. Your files remain in the OneDrive folder and in the cloud.
Can I still access OneDrive files after hiding the icon?
Yes. You can navigate to the OneDrive folder manually (usually under C:\Users\YourName\OneDrive) or use the OneDrive app.
Will this stop OneDrive from syncing?
No, the sync process continues in the background. The change only affects the File Explorer UI.
Does this work on Windows 10 and Windows 11?
Yes, the registry method works on both. The Group Policy method works on Pro/Enterprise editions of both.
What if I want to bring the icon back?
Simply set the registry value back to 1 or set the Group Policy to “Not Configured”.
Is there a way to do this without editing the registry?
Yes, you can use the Group Policy method if you have Windows Pro or higher. Some third-party tools also offer a GUI, but the registry method is the most reliable.