Yes, you can remove OneDrive from File Explorer in Windows 11, and there are three ways to do it: unlink your account, hide the sidebar entry with a Registry tweak, or uninstall the app. The entry sits in the left navigation pane alongside Home and Gallery, and if you don’t use the cloud service, it is just clutter. [1] For more detail, see How to Get Rid of OneDrive in File Explorer.
Each route does something different. Unlinking stops syncing, the Registry tweak only hides the entry, and uninstalling removes the app and the entry from File Explorer. [1] The Registry route is the one that carries risk, since editing it improperly can cause serious problems. [1]
Quick pick: want a clean sidebar and nothing else changed? Hide the entry. Done with OneDrive entirely? Uninstall it. Want to stop syncing but keep the app? Unlink.
What should you know before you start?
Before you pick a method, know that hiding, unlinking and uninstalling are three different actions, and none of them deletes the files you have already synced.
Hiding, unlinking and uninstalling
Hiding only removes the OneDrive entry from the File Explorer sidebar. The Registry tweak does this by setting a value named System.IsPinnedToNamespaceTree to 0. [1]
Unlinking disconnects your account from the PC, so files stop syncing. Uninstalling removes the OneDrive app, and that also takes the entry out of File Explorer. [1]
In short: hiding changes how the sidebar looks, unlinking changes how your files sync, and uninstalling removes the app itself.
What happens to your files
Files that have already synced stay in the local OneDrive folder on your PC unless you delete them yourself. Removing the sidebar entry does not move or erase them. If you want to keep working with them, you can still open that folder directly.
Windows versions
Windows 11: the steps in this article are written for Windows 11, where the left pane lists Home, Gallery and OneDrive. [1]
Windows 10: the sidebar looks different, and the system is past end of support, so treat any Windows 10 steps with extra care.
A note on Gallery
Gallery sits in the same navigation pane but has its own separate fix. Removing OneDrive will not remove it. [1]
How do you unlink OneDrive from your PC?
Unlinking disconnects your account from this PC so OneDrive stops syncing, and it is the gentlest way to cut the connection. The steps below use the OneDrive app already running on your PC.
Select the OneDrive cloud icon in the taskbar notification area. You may need to click the up arrow to find it.
Select the gear icon, then choose Settings.
Open the Account tab.
Next to your account, select Unlink this PC.
Confirm when prompted.
The exact labels can vary slightly between OneDrive builds, but the path is the same: taskbar icon, Settings, Account, Unlink this PC.
What remains after you unlink
Once you unlink, your files stop syncing between this PC and the cloud. Anything already in the local OneDrive folder stays there until you delete it yourself, and nothing is removed from your online storage.
That means you can still reach your files through the OneDrive website. If you later change your mind, you can reinstall the app and sign in again.
Unlinking alone may not clear the OneDrive entry from the File Explorer sidebar. If it lingers, hiding the entry or uninstalling the app finishes the job, as described below.
How do you hide the OneDrive entry with the Registry?
You can hide the OneDrive entry from the File Explorer sidebar with one Registry value, and OneDrive itself stays installed. This tweak only removes the sidebar entry; it does not delete any files.
Safety first: modifying the Registry can cause serious problems if done wrong, so create a full system backup or a Registry backup before you start. [1] Creating a restore point works too. The tweak does not delete your files; it only changes whether the entry is pinned to the sidebar.
Open Registry Editor (press the Windows key, type
regedit, and press Enter).Go to the key named
{018D5C66-4533-4307-9B53-224DE2ED1FE6}. [1] One way is to paste the full path into the Registry Editor address bar and press Enter. [2] The path is not reproduced here, so copy it from a trusted reference rather than typing it by hand.In that key, find the DWORD
System.IsPinnedToNamespaceTree. If it is not there, create it as a new DWORD (32-bit) Value with exactly that name. [1]Double-click
System.IsPinnedToNamespaceTreeand set the value data to0. [1]Close Registry Editor, then restart File Explorer or sign out and back in so the sidebar refreshes.
Open File Explorer afterward. The OneDrive entry should be gone from the left pane, while the OneDrive app keeps running in the background. [2]
To bring the entry back later, return to the same DWORD and change its value from 0 to 1.
How do you uninstall OneDrive completely?
Uninstalling is the most thorough route: it removes the OneDrive app and its entry in File Explorer in one go. [3]
Press
Windows + Ito open Settings. [3]Go to Apps > Installed apps. [3]
Type “OneDrive” in the search box to find Microsoft OneDrive. [3]
Click the three-dot menu next to Microsoft OneDrive, then click Uninstall. [3]
Confirm the action when prompted. [3]
Once the uninstall finishes, OneDrive no longer appears in File Explorer, and your files stop syncing. [3]
What happens to your files
The files you already synced remain in your local OneDrive folder on the PC, so uninstalling the app does not wipe them. Your cloud copies are also still available online through the OneDrive website. [3]
If you change your mind later, you can reinstall OneDrive from the Microsoft Store. [3]
This route makes sense only if you no longer need OneDrive, because it removes the app from your system entirely. [3] If you would rather keep the app and only tidy the sidebar, the Registry tweak is the lighter option. [1]
Which method should you choose?
Pick the method by what you want to happen to the app: hiding the entry changes only the sidebar, while uninstalling removes OneDrive entirely.
Method | Stops syncing? | Sidebar entry | What it touches |
|---|---|---|---|
Unlink | Yes | May remain | Disconnects your account from this PC |
Registry tweak | No | Hidden | Sets |
Uninstall | Yes | Removed | Removes the app and its File Explorer integration |
The Registry route is the narrowest. It works by creating a System.IsPinnedToNamespaceTree DWORD set to 0 under the {018D5C66-4533-4307-9B53-224DE2ED1FE6} key, and it only hides the entry. [1] The app stays installed.
Uninstalling is the most thorough. It completely removes OneDrive and its integration with File Explorer, so the entry disappears from the sidebar. [3] Your files will no longer sync, but you can still reach them on the OneDrive website or reinstall the app from the Microsoft Store later. [3]
Unlinking sits in between. It is the way to go if you simply want to stop using the service, and it is covered as a way to remove OneDrive from File Explorer. [4] Because the app remains installed, the sidebar entry can linger afterward.
In short: choose the Registry tweak if you only want a tidier sidebar, unlink if you want to stop syncing but keep the app available, and uninstall if you never plan to use OneDrive again.
Common questions about removing OneDrive
Will I lose my files?
No. Hiding the entry with the Registry only changes what File Explorer shows, and your files stay where they are. The Registry tweak targets the {018D5C66-4533-4307-9B53-224DE2ED1FE6} key and its System.IsPinnedToNamespaceTree value, which controls the sidebar page rather than your data. [1]
Can I bring OneDrive back?
Yes. If you hid the entry, set the System.IsPinnedToNamespaceTree DWORD back to 1 (or delete it), then restart File Explorer. [1] If you uninstalled the app, you would need to install OneDrive again before the entry returns, because uninstalling the app is what removes it from File Explorer. [1]
If you unlinked your PC, you can sign in again from OneDrive and choose your account to resume syncing.
Why is OneDrive still showing after unlinking?
Unlinking stops syncing, but it does not always remove the sidebar entry. The entry belongs to File Explorer’s navigation pane, and the OneDrive app is still installed. [4]
To clear it, you have two options from the Registry and app routes:
Set
System.IsPinnedToNamespaceTreeto 0 in the {018D5C66-4533-4307-9B53-224DE2ED1FE6} key to hide the page. [1]Uninstall the OneDrive app, which also removes the entry from File Explorer. [1]
After a Registry change, restart File Explorer or sign out so the sidebar refreshes.
Wrapping up
Pick the method that matches what you actually want: unlink if you want syncing to stop, hide the entry with the Registry tweak if you only want a cleaner sidebar, and uninstall if you want the app gone. The Registry route is the one that targets File Explorer’s navigation pane directly, by setting System.IsPinnedToNameSpaceTree to 0 under the OneDrive key. [5]
If the sidebar is still more crowded than you like, Gallery is another entry you can remove on its own, with its own fix, whether or not you touch OneDrive. Start with the single method that fits your goal, then tidy the rest.
Sources
How to remove OneDrive page from File Explorer on Windows 11
How to Remove OneDrive from File Explorer Navigation Pane in Windows 11
3 Ways to Remove OneDrive Shortcut from File Explorer in Windows 11
How to Remove OneDrive from File Explorer in Windows 11 (Unlink OneDrive)
How to Remove OneDrive from File Explorer in Windows 11: A Guide
