How to Uninstall Microsoft OneDrive on Windows 11
This guide walks through three levels of removal: standard uninstall, deep cleanup, and preventing reinstall.
Tier 1 — Standard Uninstall
Method A — Settings
- Press Win + I → Apps
- Select Installed Apps
- Find Microsoft OneDrive
- Click ⋯ → Uninstall
Reboot after removal.
Method B — Command Line (More Reliable)
Open an elevated PowerShell window and run:
taskkill /f /im OneDrive.exe %SystemRoot%\System32\OneDriveSetup.exe /uninstall
On most 64-bit systems, also run:
%SystemRoot%\SysWOW64\OneDriveSetup.exe /uninstall
Reboot.
Tier 2 — Remove Residual Files & Explorer Entry
Delete Leftover Folders
Delete the following folders if they exist:
C:\Users\<your-user>\OneDrive C:\Users\<your-user>\AppData\Local\Microsoft\OneDrive C:\ProgramData\Microsoft OneDrive
Remove OneDrive from Explorer Sidebar
- Press Win + R → type regedit
- Navigate to:
HKEY_CLASSES_ROOT\CLSID\
{018D5C66-4533-4307-9B53-224DE2ED1FE6}
Set the value:
System.IsPinnedToNameSpaceTree = 0
Also check:
HKEY_CLASSES_ROOT\Wow6432Node\CLSID\
{018D5C66-4533-4307-9B53-224DE2ED1FE6}
Restart Explorer or reboot.
Tier 3 — Prevent Reinstallation (Windows 11 Pro)
- Press Win + R → type gpedit.msc
- Navigate to:
Computer Configuration
→ Administrative Templates
→ Windows Components
→ OneDrive
Enable:
Prevent the usage of OneDrive for file storage
Reboot.
Optional — Remove via Appx (If Stubborn)
Get-AppxPackage *OneDrive* | Remove-AppxPackage
Important Notes
- Files synced with OneDrive remain on your local system.
- Microsoft 365 auto-backup and Known Folder Move will stop syncing.
- Uninstalling does not delete your cloud-stored files.