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:
| Action | What It Does | OneDrive Still Runs? | Files Affected? |
|---|---|---|---|
| Unlink account | Disconnects sync, removes the pane entry | No | Local copies stay |
| Uninstall the app | Removes the client entirely | No | Local copies stay |
| Hide from navigation pane | Visual removal only | Yes | Nothing changes |
| Disable via Group Policy | Blocks OneDrive at the system level | No | Local 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.
- Click the OneDrive cloud icon in the system tray (bottom-right of the taskbar — you may need to expand hidden icons)
- Click the gear icon → select Settings
- Go to the Account tab
- Click Unlink this PC
- 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:
- Open Settings → Apps → Apps & features
- Search for Microsoft OneDrive
- Click it → select Uninstall
Windows 11:
- Open Settings → Apps → Installed apps
- Find Microsoft OneDrive
- 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.
- Press Windows + R, type
regedit, press Enter - Navigate to:
HKEY_CLASSES_ROOTCLSID{018D5C66-4533-4307-9B53-224DE2ED1FE6} - Find the value named System.IsPinnedToNameSpaceTree
- Double-click it and change the value data from
1to0 - 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:
- Press Windows + R, type
gpedit.msc, press Enter - Navigate to: Computer Configuration → Administrative Templates → Windows Components → OneDrive
- Double-click "Prevent the usage of OneDrive for file storage"
- Set it to Enabled
- 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.