Disable or Uninstall OneDrive on Windows 10 – Guide
In this article
Yes, you can permanently disable or uninstall OneDrive from Windows 10 by using built‑in settings, Group Policy, or a simple registry edit. The method you choose depends on whether you want to keep the program installed but stopped, or remove it entirely.
What You'll Need
- Administrator access on the PC (you must be logged in as an admin or have admin credentials).
- Windows 10 Pro, Enterprise, or Education for Group Policy method; Home edition can use the registry method.
- A backup of any files stored only in the OneDrive folder, if you plan to delete the app.
Step‑By‑Step
- Decide which approach fits you. If you simply want OneDrive to stop syncing but keep the executable, use the Settings method. If you need the program gone, proceed to the uninstall or Group Policy/registry routes.
- Disable syncing via Settings (quickest).
- Press Win + I to open Settings.
- Navigate to Apps > Apps & features.
- Scroll down, locate Microsoft OneDrive, click it, then select Advanced options.
- Toggle Terminate to stop the process, then set Background apps to Never. This prevents OneDrive from restarting automatically.
After these steps the OneDrive icon disappears from the taskbar, and no files will sync. The program remains on disk and can be re‑enabled later.
- Uninstall OneDrive via Settings (removes the app).
- Open Settings again with Win + I.
- Go to Apps > Apps & features.
- Find Microsoft OneDrive, click Uninstall, and confirm the prompt.
Windows will remove the executable and related files. The OneDrive folder in your user profile stays behind; you can delete it manually if you no longer need it.
- Use Group Policy to block OneDrive (Pro/Edu/Enterprise only).
- Press Win + R, type
gpedit.msc, and press Enter to launch the Local Group Policy Editor. - Navigate to
Computer Configuration > Administrative Templates > Windows Components > OneDrive. - Double‑click the policy named Prevent the usage of OneDrive for file storage.
- Select Enabled, click Apply, then OK.
- Close the editor and restart the computer (or run
gpupdate /forcein an elevated Command Prompt).
After the reboot the OneDrive client is disabled, the sync button is greyed out, and users cannot re‑enable it without changing the policy.
- Press Win + R, type
- Apply a registry tweak (works on all editions).
- Open the Registry Editor: press Win + R, type
regedit, and press Enter. Accept the UAC prompt if it appears. - Navigate to
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows. - If a
OneDrivekey does not exist underWindows, right‑clickWindows, choose New > Key, and name itOneDrive. - With the
OneDrivekey selected, right‑click the right pane, choose New > DWORD (32‑bit) Value, name itDisableFileSyncNGSC, and set its value to1. - Close the Registry Editor and restart the PC (or sign out and back in).
This registry entry tells Windows to block the OneDrive sync client. The executable remains on disk, but it will not start automatically and the taskbar icon disappears.
- Open the Registry Editor: press Win + R, type
- Delete leftover files (optional cleanup).
- Open File Explorer and go to
C:\Users\%USERNAME%\AppData\Local\Microsoft\OneDrive. Delete the folder if it still exists. - Also check
C:\Program Files\Microsoft OneDriveandC:\Program Files (x86)\Microsoft OneDrive. Remove any remaining files. - Finally, delete the user’s OneDrive folder (
C:\Users\%USERNAME%\OneDrive) if you no longer need the copied files.
These steps are optional but help reclaim disk space and avoid confusion later.
- Open File Explorer and go to
Common Mistakes
- Skipping the restart. Many changes (Group Policy, registry) only take effect after a reboot or a
gpupdate /force. Forgetting this leaves OneDrive appearing to work. - Editing the wrong registry hive. The key must be placed under
HKEY_LOCAL_MACHINE. Adding it underHKEY_CURRENT_USERwill not block OneDrive for all users. - Uninstalling without backing up. If you have files stored exclusively in OneDrive and not on the PC, uninstalling removes the sync client but does not delete cloud copies. However, you lose the convenient local copy unless you move it first.
- Using the Home edition with Group Policy. Home does not include
gpedit.msc. Attempting to run it will show an error; use the registry method instead.
Tips
- Create a system restore point before modifying the registry. Search for "Create a restore point" in the Start menu, click Create, and give it a descriptive name.
- If you only need a temporary pause, use the Settings > OneDrive > Pause syncing option instead of a full disable.
- To re‑enable OneDrive after using the registry or Group Policy method, set the
DisableFileSyncNGSCvalue back to0or change the policy to Not Configured, then restart. - Enterprise environments often enforce OneDrive via domain policies. In those cases local changes may be overwritten on the next policy refresh.
- When uninstalling, Windows may prompt you to keep the OneDrive folder. Choose "Keep files" if you want to preserve the local copy for later use.
Troubleshooting
If OneDrive still appears after you have followed the steps, try the following checks in order:
- Restart the PC. A simple reboot resolves most lingering services.
- Verify the policy value. Open
gpedit.mscagain and confirm the "Prevent the usage of OneDrive" policy is still set to Enabled. If it reverted, another admin may have overwritten it. - Check the registry entry. Open
regeditand ensureDisableFileSyncNGSCis still1. If the value changed, a script or third‑party tool may be resetting it. - Look for a second OneDrive executable. Some Windows updates reinstall OneDrive to
C:\Windows\System32\OneDriveSetup.exe. Run that installer with the/uninstallswitch: open an elevated Command Prompt and type"C:\Windows\System32\OneDriveSetup.exe" /uninstall. - Clear leftover scheduled tasks. Open Task Scheduler, navigate to
Microsoft > Windows > OneDrive, and delete any tasks that might restart the client. - Run System File Checker. Corrupted system files can cause the uninstall wizard to fail. In an elevated Command Prompt run
sfc /scannow, then retry the uninstall.
If none of the above resolves the issue, consider creating a new local user account with admin rights and repeat the chosen method there. This isolates the problem to the original profile.
Frequently Asked Questions
Will disabling OneDrive delete my cloud files?
No. Disabling or uninstalling the client only stops local syncing. Your files remain safely stored in the Microsoft cloud unless you manually delete them from the OneDrive website.
Can I re‑enable OneDrive after I have disabled it with Group Policy?
Yes. Open the same policy location, set it to Not Configured or Disabled**, apply, and restart. The client will start normally again.
Do I need an internet connection to uninstall OneDrive?
No. The uninstall process uses files already present on the machine. However, an internet connection is required if you later want to download the latest version from Microsoft.
Why does the OneDrive icon keep reappearing after I delete the program?
Windows 10 periodically checks for missing system components and may reinstall OneDrive during major updates. Using the registry or Group Policy method prevents the automatic reinstall.
Is there any risk of breaking Windows by editing the registry?
Changing the specific DisableFileSyncNGSC value is low‑risk, but always back up the registry or create a restore point first. Incorrectly editing other keys can cause system instability.
Can I use the same steps on Windows 11?
The steps are largely identical, though the Settings UI may look slightly different. The Group Policy and registry keys remain the same.