How to Get Rid of OneDrive in File Explorer

Stop OneDrive from syncing, keep it from launching at startup, then uninstall it so it leaves File Explorer. Steps cover Windows 11 and Windows 10, plus what happens to your files.

Windows File Explorer window with OneDrive selected in the sidebar, showing Documents, Pictures and Public folders on a desktop.
In this article

You can get rid of OneDrive in File Explorer by stopping it from syncing, stopping it from starting with Windows, and then uninstalling the app. Once that is done, the OneDrive entry should no longer clutter your sidebar. This article walks through each step in that order.

The entry is there because OneDrive is integrated with File Explorer by default. [1] On Windows 11 it sits in the navigation pane just under Quick Access, and it appears whether or not you actually use OneDrive. [2] That is why many people find it in the way, pushing down the folders they pinned.

Windows 10 reaches the same result, with a few differences in where menus and settings live, which are noted where they matter. Even after OneDrive disappears from File Explorer, you can still reach your files through the OneDrive app or the web interface if you change your mind. [2]

What should you know before you start?

Before you change anything, make sure every file you care about exists on this PC, because unlinking or uninstalling is only safe when nothing lives solely in the cloud.

SAFETY: protect OneDrive-only files first

Open your OneDrive folder in File Explorer and look for files that exist only online. Copy anything important to a local folder such as Documents, or to an external drive, before you unlink or uninstall. If a file is not on this PC, you can still reach it through the OneDrive web interface, but it is better to have a copy in hand first. [2]

The methods for removing OneDrive from File Explorer are described as ones that won’t touch your local files. [3] That only protects files already stored on the PC, which is why the check above matters.

Unlinking, hiding and uninstalling are different

  • Unlinking disconnects your Microsoft account from this PC. OneDrive stops syncing, and you may notice it is less present in File Explorer. [3]

  • Hiding removes the icon from the navigation pane only. The Windows 11 options for this are the Registry, Settings and Group Policy. [2]

  • Uninstalling removes the app itself. You can still use the OneDrive web interface if you keep using the service. [2]

This article covers stopping sync and startup, then uninstalling.

VERSIONS: Windows 11 and Windows 10

Windows 11 is the focus here. The differences are noted in the steps where they apply.

Work or school accounts

If the PC is a work computer, your organization may manage OneDrive. Personal and work OneDrive can both appear on a work PC, and removing the personal one is a separate task from changing the managed one. [4] If the settings are locked or something looks off, ask your IT administrator before you change anything.

A portable external hard drive connected by cable to an open laptop on a tidy desk, ready for a file backup.

How do you stop OneDrive from syncing and starting?

You stop OneDrive from syncing and starting by unlinking your PC, turning off its start-at-sign-in option, and then quitting the app. All of it happens from the OneDrive cloud icon, and it takes a couple of minutes.

  1. Click the OneDrive cloud icon in the taskbar tray. If you don’t see it, open the hidden icons arrow first. Choose Help & Settings, then Settings. [4]

  2. Open the Account tab. [3]

  3. Click Unlink this PC, then confirm your choice. [3] OneDrive stops syncing files, and you may notice it is less present in File Explorer. [3]

  4. Back in the Settings window, find the option that starts OneDrive automatically when you sign in to Windows, and turn it off. This keeps the app from launching at your next sign-in.

  5. Click the cloud icon again, open Help & Settings, and choose Quit OneDrive from that same menu.

The cloud icon should now be gone from the tray, and nothing will sync in the background.

What to expect afterward

Unlinking is the quiet, reversible option. It does not touch your local files, so what is already on your PC stays there. [3]

The OneDrive entry may still appear in the File Explorer sidebar for now. Unlinking stops the syncing, but removing the entry is a separate job.

If you later want OneDrive back, sign in again and the app will set up the connection.

How do you uninstall OneDrive?

You uninstall OneDrive like any other app, from the Settings app, and it takes about a minute. Do this after you have unlinked your account and stopped it from starting, as covered earlier.

  1. Open Settings. Press Windows+I or choose it from the Start menu.

  2. Go to Apps, then Installed apps. On Windows 10 the path is Settings > Apps > Apps & features.

  3. Scroll or search for Microsoft OneDrive.

  4. Select the three-dot menu next to it and choose Uninstall, then confirm. On Windows 10, select the app and click Uninstall.

  5. Open File Explorer again. The OneDrive entry in the navigation pane should be gone.

One of the guides on this topic describes full uninstallation as one of the ways to take OneDrive out of File Explorer, alongside unlinking, Group Policy and Registry Editor. [3] Unlinking and the other options leave your local files alone. [3]

If the entry is still in the sidebar after a restart of File Explorer, that is a separate issue with its own fix, covered in the next section.

Reinstalling later

Removing the app does not close the door on the service. Even when OneDrive is not visible in File Explorer, you can still reach your OneDrive files through the OneDrive app or the web interface if you decide to keep using the service. [2]

If you change your mind, you can install OneDrive again and sign in with your account. The Microsoft Store or Microsoft’s OneDrive download page are the places to look for it.

What if OneDrive still shows in the navigation pane?

If OneDrive still appears in the navigation pane after you unlink and uninstall it, a registry change on Windows 10 or a policy setting on Windows 11 can hide the entry. A leftover icon after unlinking is a common complaint. One user on a Windows 10 forum unlinked two accounts and deleted the OneDrive folders, but the blue icon stayed in File Explorer. [5]

Windows 10: hide the entry in the registry

  1. Open regedit.exe. [6]

  2. Go to HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}. [6]

  3. Double-click System.IsPinnedToNameSpaceTree and change its value from 1 to 0. [6]

  4. To bring the entry back later, set the value to 1 again. [6]

If you prefer a single command, a forum reply shows this one: [5]

REG ADD "HKCR\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /V "System.IsPinnedToNameSpaceTree" /T REG_DWORD /D "0" /F

It writes the same value, System.IsPinnedToNameSpaceTree, as a DWORD set to 0, and /F overwrites it without prompting.

Windows 11: Group Policy and Registry options

Windows 11 offers more than one way to hide the icon from the navigation pane: the Windows Registry, Windows Settings, and Group Policy (GPO). [2] The Registry and Group Policy routes suit Pro users and administrators, and the exact steps are laid out in the Prajwal Desai tutorial on removing OneDrive from File Explorer.

Once the entry is hidden, you can still reach your OneDrive files through the OneDrive app or the web interface if you keep using the service. [2]

What mistakes should you avoid?

Three mistakes cause most of the trouble when you remove OneDrive from File Explorer. Each one is easy to avoid once you know what to look for.

Deleting the OneDrive folder too early

Don’t delete the OneDrive folder just because you unlinked the account. One forum user unlinked both a colleague’s account and their own, deleted the OneDrive folders, and the blue OneDrive icon still stayed in File Explorer [5]. Deleting the folder removed files without removing the entry.

Open the folder first and look at what is inside. Files that exist only online will not be there if you delete the local copy, so move anything you need to a regular folder such as Documents before you remove anything.

Mixing up business and personal accounts

Signing in with a work account can leave two OneDrive entries in the sidebar. In one Microsoft Q&A thread, an administrator signed in to the business account on a new computer. The plain “OneDrive” entry stayed, and a second one named “OneDrive – (Company Name)” appeared [7]. Clicking the plain one opened the company OneDrive anyway [7].

So don’t assume the entry without a company name is the personal one. Before you delete anything, find out which entry points to which account. The suggested fix in that thread was to unlink the account, look in C:\users for multiple OneDrive folders, keep the “OneDrive-Company Name” folder, and delete the other related OneDrive folders [7].

If you need to remove only a personal account from a work PC, open the OneDrive cloud icon and choose Help & Settings to reach the account settings [4].

Expecting unlinking to clear the sidebar

Unlinking stops syncing, but it does not always remove the sidebar entry. The forum user above unlinked their account and the icon was still there [5]. If the entry survives, that is a separate problem with its own fix, not a sign that you did something wrong.

Which option should you choose?

Pick the option that matches how final your decision is. If you might use OneDrive again, unlink this PC and turn off startup; the app stays installed, but it stops syncing and mostly drops out of sight. Unlinking is the first method one guide lists, and it says OneDrive will stop file sync afterward [3].

If you are finished with OneDrive and use another cloud service, uninstall it. Start with the steps above, then reopen File Explorer to see the result.

For a cleaner sidebar, the related articles on removing OneDrive from File Explorer in Windows 11 and on removing Gallery cover those entries separately. To go further, see How to Remove OneDrive from File Explorer in Windows 11.

Sources

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

  2. 3 Ways to Remove OneDrive from File Explorer in Windows 11

  3. How to Remove OneDrive from File Explorer in Windows 11

  4. Quickly Remove Personal OneDrive from Work Computer Easily

  5. Delete Onedrive icon from file explorer

  6. Remove OneDrive folder from File Explorer in Windows 10

  7. Duplicate Onedrive’s in File Explorer