How to Remove OneDrive From File Explorer (And What That Actually Does)

OneDrive shows up in Windows File Explorer by default — pinned in the left sidebar, sometimes syncing files in the background whether you asked it to or not. For users who don't use Microsoft's cloud storage, or who prefer to keep File Explorer clean, removing or hiding it is a reasonable thing to want. But "removing" OneDrive can mean several different things depending on what you actually want to stop.

What You're Actually Seeing in File Explorer

When OneDrive appears in File Explorer's left navigation pane, it's not just a shortcut — it's an active sync client running in the background. The icon represents the OneDrive desktop application, which syncs files between your local machine and your Microsoft cloud storage account.

There are two versions you might see:

  • OneDrive (Personal) — linked to a personal Microsoft account
  • OneDrive - [Company Name] — linked to a work or school Microsoft 365 account

Each is managed slightly differently, which matters when you're deciding how to remove it.

The Three Levels of "Removing" OneDrive

Not all removal is the same. Before changing anything, it helps to understand what each approach actually does:

ActionWhat It DoesOneDrive Still Runs?Files Affected?
Unlink accountDisconnects sync, removes the pane entryNoLocal copies stay
Uninstall the appRemoves the client entirelyNoLocal copies stay
Hide from navigation paneVisual removal onlyYesNothing changes
Disable via Group PolicyBlocks OneDrive at the system levelNoLocal copies stay

Understanding this spectrum matters because some users want OneDrive completely gone, while others just want it out of their sidebar.

Method 1: Unlink Your Account (Recommended Starting Point)

This stops OneDrive from syncing without deleting your files. It also removes the OneDrive entry from File Explorer's navigation pane.

  1. Click the OneDrive cloud icon in the system tray (bottom-right of the taskbar — you may need to expand hidden icons)
  2. Click the gear icon → select Settings
  3. Go to the Account tab
  4. Click Unlink this PC
  5. Confirm when prompted

After unlinking, OneDrive will no longer sync, and the pane entry typically disappears from File Explorer. Your previously synced files remain on your local drive in the OneDrive folder — they just won't update.

Method 2: Uninstall OneDrive Entirely 🗑️

If you want the application fully removed:

Windows 10:

  1. Open SettingsAppsApps & features
  2. Search for Microsoft OneDrive
  3. Click it → select Uninstall

Windows 11:

  1. Open SettingsAppsInstalled apps
  2. Find Microsoft OneDrive
  3. Click the three-dot menu → Uninstall

Note: On some Windows editions and configurations, OneDrive is deeply integrated and the uninstall option may be greyed out or unavailable. This is more common on Windows 11 Home and devices with OEM configurations. In those cases, you'll need to use the Registry or Group Policy methods below.

Method 3: Remove OneDrive From the Navigation Pane Only (Hide It)

If you want OneDrive off your sidebar but don't want to touch the app itself, you can remove it via the Registry Editor. This is a visual-only fix — OneDrive continues running in the background.

⚠️ Back up your registry before editing it.

  1. Press Windows + R, type regedit, press Enter
  2. Navigate to: HKEY_CLASSES_ROOTCLSID{018D5C66-4533-4307-9B53-224DE2ED1FE6}
  3. Find the value named System.IsPinnedToNameSpaceTree
  4. Double-click it and change the value data from 1 to 0
  5. Close Registry Editor and restart File Explorer (or reboot)

For 64-bit systems, repeat the same step at: HKEY_CLASSES_ROOTWow6432NodeCLSID{018D5C66-4533-4307-9B53-224DE2ED1FE6}

Method 4: Use Group Policy (Windows Pro and Enterprise)

On Windows 10/11 Pro, Enterprise, or Education, the Local Group Policy Editor gives you cleaner administrative control:

  1. Press Windows + R, type gpedit.msc, press Enter
  2. Navigate to: Computer ConfigurationAdministrative TemplatesWindows ComponentsOneDrive
  3. Double-click "Prevent the usage of OneDrive for file storage"
  4. Set it to Enabled
  5. Restart your PC

This disables OneDrive at the system level and removes it from File Explorer. This method is not available on Windows Home editions.

What Happens to Your Files?

This is the question most people forget to ask before removing OneDrive. 🗂️

  • Files marked "cloud only" (with a blue cloud icon, not downloaded locally) will become inaccessible once OneDrive is unlinked or uninstalled — because they only exist in the cloud.
  • Files fully downloaded to your local OneDrive folder will remain on your hard drive, untouched, after removal.
  • Before unlinking or uninstalling, open your OneDrive folder and check which files show a checkmark (local copy exists) vs. a cloud icon (online only). Download anything you need first.

Variables That Change the Right Approach

Which method makes sense depends on factors specific to your setup:

  • Windows edition — Home users can't access Group Policy; some can't fully uninstall OneDrive
  • Work vs. personal account — A work-assigned Microsoft 365 account may reinstall OneDrive automatically via IT policy, regardless of what you do locally
  • File sync status — If you actively use OneDrive for backup or cross-device access, unlinking has real consequences beyond just aesthetics
  • Technical comfort level — Registry edits carry risk if done incorrectly; unlinking is safer for most users
  • Whether OneDrive reinstalls automatically — Windows Updates have been known to restore OneDrive after removal, particularly on consumer editions

The right approach for a work laptop managed by an IT department looks very different from the right approach for a personal PC where you just want a cleaner sidebar. Your specific setup — the Windows edition you're running, whether your account is managed, and what files are actually synced — is what determines which method will stick and whether there are any file access consequences to plan around.