
OneDrive is built into Windows and can sync files, appear in File Explorer, and launch at startup. You can unlink it, uninstall it, or block it more permanently through policy or registry.
This applies to Windows 10 and Windows 11.
Does This Affect You?
Unlinking stops sync but leaves OneDrive installed. Uninstalling removes the app. Policy or registry blocking helps stop it from returning after updates. None of these intentionally delete your local documents.
Unlink OneDrive
- Click the OneDrive cloud icon near the clock.
- Open the gear menu and choose Settings.
- Open the Account tab.
- Click Unlink this PC.
- Confirm Unlink account.
Sync stops, but the app remains installed and downloaded files stay on the PC.
Uninstall OneDrive
- Before uninstalling, right-click any cloud-only OneDrive files you need and choose Always keep on this device.
- Open Settings > Apps > Installed apps or Apps & features.
- Search for Microsoft OneDrive.
- Choose Uninstall and confirm.
Previously downloaded files usually remain in the OneDrive folder under your user profile. Move them elsewhere if you no longer want that folder structure.
Stop OneDrive from Coming Back
On Pro, Enterprise, or Education, use Group Policy: open gpedit.msc, go to Computer Configuration > Administrative Templates > Windows Components > OneDrive, enable Prevent the usage of OneDrive for file storage, and restart.
On Home, use Registry Editor: create HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindowsOneDrive, add a DWORD named DisableFileSyncNGSC, set it to 1, and restart. Reverse the policy or delete the value if you want OneDrive back.
OneDrive File Notes
Local vs Cloud-Only Files
A file with a cloud icon may not be downloaded locally. It remains in your Microsoft account online, but it will not be available from this PC after uninstalling until OneDrive is restored or the file is downloaded another way.
Reinstalling OneDrive
Download OneDrive from Microsoft if you want it back. Reverse any policy or registry block first.
Cloud Storage Alternatives
Google Drive, Dropbox, and other sync apps work separately if you are replacing OneDrive rather than leaving cloud storage entirely.
Sources
- Microsoft Support: Unlink or reset OneDrive on your PC
- Microsoft Support: Uninstall OneDrive
- Microsoft Learn: Disable or uninstall OneDrive using Group Policy
