How to Remove OneDrive from File Explorer in Windows 11

OneDrive shows up in File Explorer by default, but you can get rid of it. Here is how to unlink or uninstall it safely and what happens to your files.

Windows 11 File Explorer Home window with Quick access folders and a sidebar, with a large yellow folder icon overlaid in the center.
In this article

Yes, you can remove OneDrive from your File Explorer, and the gentlest way is to unlink your account rather than uninstall the app. OneDrive is Microsoft’s cloud storage service, and it is integrated with File Explorer by default, which is why its folder appears in the navigation pane even if you never set it up. [1] For the next step, see How to Change Default View in File Explorer on Windows 11.

Unlinking keeps the app installed but stops it from syncing your files. [2] Uninstalling goes further and removes the app itself. [3]

This article covers Windows 11 first, with notes where Windows 10 differs. You will learn how to unlink, uninstall, or hide OneDrive, and what to do if it still shows up.

What happens to your files when you remove OneDrive?

Removing OneDrive from File Explorer does not delete what is already safely stored in your OneDrive account online. The risk is files that exist only in the OneDrive folder on your PC.

Files already in the cloud

Microsoft’s guidance says unlinking stops syncing and leaves your cloud files where they are, so you can still reach them from a web browser or another device. [3]

Files only on your PC

Anything that never finished syncing, or sits in the local OneDrive folder without a cloud copy, needs to be copied somewhere else first. A simple example: copy the contents of your OneDrive folder to a new folder such as C:\Users\YourName\Documents\OneDrive Copy, or to an external drive. Once you have a copy, unlinking or uninstalling cannot cost you those files.

SAFETY: Back up or copy everything in the OneDrive folder before you unlink or uninstall. Do this even if you think it is all synced.

Unlink, disable, or uninstall

The three options do different things:

  • Unlink: This is the least invasive method. The app stays installed, but it stops syncing your files and showing cloud updates. Your local files stay where they are. [2]

  • Disable: You stop OneDrive from starting automatically with Windows, for example by turning it off on the Startup tab in Task Manager. [4]

  • Uninstall: You remove the app itself, which is what clears OneDrive out of File Explorer for good.

If you might want OneDrive back later, unlinking is the easiest to undo, because you do not have to reinstall anything. [2]

Unlinking is the gentlest way to stop OneDrive from syncing, and it takes about a minute. It keeps the app installed, so you can reconnect later without a reinstall. [2]

  1. Click the OneDrive cloud icon in the system tray at the bottom-right corner of your screen. [2] You can also right-click the icon. [4]

  2. In the menu that opens, select the gear icon labeled Help & Settings, then click Settings. [2]

  3. In the new window, switch to the Account tab. [2]

  4. Click Unlink this PC. [4]

  5. Confirm your choice, and your account is unlinked. [4]

After you confirm, your files stay where they are, but OneDrive stops syncing from that point on. [2] A OneDrive sign-in window may appear afterward. You can close it without signing in.

If the cloud icon is not visible, click the small up arrow in the system tray to show hidden icons, then look for it there.

Unlinking does not by itself remove the OneDrive entry from the File Explorer navigation pane. For that, you need one of the other methods in this article.

Windows 11 vs. Windows 10

The steps are the same on both versions: the tray icon, Settings, the Account tab and Unlink this PC all work as described. [4][2]

How do you uninstall OneDrive so it disappears from File Explorer?

Uninstalling OneDrive is the most thorough way to clear it from the File Explorer navigation pane, and it takes only a few clicks in Settings. The steps below use Windows 11.

  1. Open Settings (press Windows+I, or right-click Start and choose Settings).

  2. Select Apps, then Installed apps.

  3. Scroll or search the list until you find Microsoft OneDrive.

  4. Select the three-dot menu next to it, choose Uninstall, and confirm when Windows asks.

  5. Open File Explorer again and look at the left-hand navigation pane. The OneDrive entry should be gone.

Microsoft’s own guidance lists uninstalling as one of the ways to turn OneDrive off on a PC, alongside disabling it. [3] Uninstalling removes the app itself, so it does not just hide the entry. You may also find this useful: How to Open File Explorer.

Windows 10 uses Apps & features

On Windows 10, the same removal lives under a different name. Open Settings, choose Apps, and use the Apps & features list instead of Installed apps. Find Microsoft OneDrive there, select it, and choose Uninstall.

A lighter alternative to know about

Some guides hide the entry through the Registry Editor instead. They point to the key {018D5C66-4533-4307-9B53-224DE2ED1FE6} and change its System.IsPinnedToNameSpaceTree value to 0. [5] That only removes the OneDrive interface from File Explorer and does not remove the service from your PC. [6] If you want the app gone, stick with the uninstall steps above.

Can you hide OneDrive without uninstalling it?

Yes. You can stop OneDrive from running, or hide its entry in File Explorer, without uninstalling the app. Which route fits depends on whether you want it quiet or gone from the navigation pane.

Disable OneDrive at startup

This stops OneDrive from launching every time you turn on your PC. Right-click the taskbar and select Task Manager, then open the Startup tab. Find OneDrive in the list, right-click it, and choose Disable. [4]

The app stays installed, so you can start it manually later. The trade-off is that the OneDrive entry may still appear in File Explorer, because startup is a separate matter from the navigation pane.

Use Group Policy (editions that include it)

The Group Policy Editor is the route for removing OneDrive from File Explorer without uninstalling. Press Windows + R, type the following, and hit Enter. [4]

gpedit.msc

From there, go to Computer Configuration, then Administrative Templates, and look for the OneDrive settings. [4] The Group Policy Editor isn’t part of every Windows edition, so Windows Home users may not find it.

If Group Policy isn’t available, another tutorial hides the OneDrive icons from the navigation pane through Registry Editor by editing the DWORD System.IsPinnedToNameSpaceTree, again without uninstalling OneDrive. [7]

Trade-offs at a glance

Option

What it does

Downside

Disable startup

OneDrive stops launching with Windows

Entry may still show in File Explorer

Group Policy

Removes OneDrive from File Explorer, app stays

Not on every edition

Registry edit

Hides navigation pane icons

Manual change to system settings

Uninstall

Removes the app itself

Covered in its own section

Hiding keeps OneDrive available if you change your mind. Microsoft also lists turning off, disabling, and uninstalling as separate options, so you can pick the lightest one that solves your problem. [3]

What if OneDrive still shows up in File Explorer?

If OneDrive still appears in File Explorer after you unlink or uninstall it, the cause is usually a stale window, leftover folders, or OneDrive returning on its own. Work through these three cases in order.

Restart File Explorer or sign out

File Explorer sometimes keeps showing the old navigation pane until it reloads. Close every File Explorer window and reopen it. If the entry is still there, sign out of Windows and back in, or restart the PC.

One registry tweak described for this job sets System.IsPinnedToNameSpaceTree to 0 under the key {018D5C66-4533-4307-9B53-224DE2ED1FE6} to hide the OneDrive entry. [5] Changes like this only show up once the editor is closed and File Explorer reloads. [5]

Folders may stay on disk after unlinking

Unlinking does not delete your files. They stay where they are, and OneDrive simply stops syncing from that point on. [2] So a OneDrive folder in your user profile, or a OneDrive item in the navigation pane, can remain after you unlink because the app is still installed.

If you only want the entry out of sight, you can right-click OneDrive in the navigation pane, choose Properties, and on the General tab check Hidden, then click Apply and OK. [2] That hides the folder from view without uninstalling anything. [2]

Updates or sign-in can bring OneDrive back

OneDrive can return if you sign in to Windows or an app with your Microsoft account, because the app is built to run with that account. Microsoft documents separate options to turn off, disable, or uninstall OneDrive, and which one you used decides whether it can come back. [3] Unlinking and hiding are the lightest, so they are the easiest to be undone.

If it reappears, repeat the step you used before. If you want it gone more firmly, uninstall the app instead of only unlinking. [3]

Which method should you choose?

If you’re unsure, unlink OneDrive first. It’s the gentlest option: the app stays installed, but it stops syncing, and you can come back to it later without reinstalling. [2] Your files stay where they are after you unlink. [2]

If you want a clean navigation pane and are sure you won’t use OneDrive, uninstall it instead. Once that’s done, you can tidy the rest of File Explorer: views, Quick Access and the navigation pane. The pillar guide on organizing File Explorer in Windows 11 covers those steps.

Sources

  1. Welcome to this guide on How To Remove Onedrive From File Explorer!

  2. How to Remove OneDrive from File Explorer?

  3. Turn off, disable, or uninstall OneDrive

  4. Windows 11 How to Disable OneDrive: A Step-by-Step Guide

  5. How to Remove OneDrive from File Explorer in Windows 11: A Guide

  6. How to remove OneDrive from the Windows 10 File Explorer

  7. How to Remove OneDrive from File Explorer Navigation Pane in Windows 11