Disable OneDrive on Windows Without Losing Local Files
Disable OneDrive on Windows Without Losing Local Files
Before disabling OneDrive, make sure your files are really on the PC. File Explorer can show cloud placeholders that look local but contain no offline copy. The steps below download those files first, stop folder backup and syncing, and then offer an optional Windows policy for a stronger block.
This guide is for a personal Windows 10 or Windows 11 PC that is not managed by an employer or school. If the device is managed, ask the administrator before changing OneDrive settings. In either case, back up important files somewhere else before moving or deleting them.
Standard Windows 10 support ended on October 14, 2025. These steps may still work on Windows 10, but Microsoft recommends moving to Windows 11; otherwise, confirm that the PC is covered by the Windows 10 Extended Security Updates program.[6]
Choose the level you need
| Goal | Stop after |
|---|---|
| Keep OneDrive installed but stop the current account syncing | Step 4 |
| Also stop OneDrive launching when you sign in | Step 5 |
| Prefer local saves in Microsoft Office | Step 6 |
| Block OneDrive at the Windows policy level | Step 7 |
Step 1: Download the files you need
Files On-Demand shows online-only files in File Explorer even when their contents are not stored on the PC. A blue cloud icon marks these files. Use Always keep on this device or Download all files to download them.[1]
- Select the OneDrive cloud icon in the notification area.
- Open Help & Settings → Settings → Sync and backup → Advanced settings.
- Under Files On-Demand, select Download all files. If that option is unavailable, right-click the folders you need in File Explorer and select Always keep on this device.
- Wait for syncing to finish. Confirm that required files show a green locally available or always-available status rather than a blue cloud.
- Open a sample of important files while temporarily offline. Do not continue until they open correctly.
Step 2: Stop OneDrive folder backup
OneDrive may be backing up Desktop, Documents, and Pictures. Open OneDrive Settings → Sync and backup → Manage backup. When you stop backing up a folder, choose Keep the files only on my PC.[2]
- Open OneDrive Settings → Sync and backup → Manage backup.
- Turn off backup for each enabled folder.
- Choose Keep the files only on my PC.
- If OneDrive reports that cloud-only files cannot be moved, return to Step 1 and mark them Always keep on this device.[2]
- Let all file operations finish before closing OneDrive.
Do not choose Keep the files only in OneDrive when your goal is to retain local copies. That option removes those files from the PC.[2]
Step 3: Check the local folders
In File Explorer, inspect these folders:
%USERPROFILE%\Desktop
%USERPROFILE%\Documents
%USERPROFILE%\Pictures
For each folder:
- confirm the expected files are present;
- open representative files;
- check that the path does not contain
OneDrive; - compare file counts or sizes if the data is important;
- do not delete the old OneDrive folder until you have a separate backup and are satisfied that the move is complete.
Step 4: Unlink the PC
- Open OneDrive Settings → Account.
- Select Unlink this PC → Unlink account.
- Quit OneDrive.
Unlinking does not delete data from OneDrive. Your cloud files remain available through OneDrive.com.[3] It also does not download files that are still online-only, which is why Steps 1–3 come first.
Step 5: Stop OneDrive from starting with Windows
- Open Task Manager.
- Select Startup apps on Windows 11, or the Startup tab on Windows 10.
- Select Microsoft OneDrive → Disable.
- If OneDrive is still running, use its tray menu to select Quit OneDrive.
- Restart Windows.
Menu labels can differ slightly by Windows and OneDrive version.
Step 6: Make Microsoft Office save locally
In Word, Excel, and PowerPoint:
- Open File → Options → Save.
- Enable Save to Computer by default.
- Set Default local file location to a folder that does not contain
OneDrive, such as:
C:\Users\<your-name>\Documents
Office stores this setting separately in each application, so check every app you use.[4]
Step 7: Block OneDrive through Windows policy (optional)
This policy is available on Windows Pro, Enterprise, Education, and IoT Enterprise, but not Windows Home.[5]
- Press
Win+R, entergpedit.msc, and press Enter. - Go to:
Computer Configuration
→ Administrative Templates
→ Windows Components
→ OneDrive
- Open Prevent the usage of OneDrive for file storage.
- Set it to Enabled, apply the change, and restart Windows.
Microsoft says this policy stops OneDrive cloud synchronization, removes OneDrive from File Explorer’s navigation pane, and prevents apps from accessing OneDrive through the relevant Windows interfaces.[5]
If gpedit.msc is unavailable, do not install a third-party Group Policy enabler or paste an unverified registry script. Steps 1–6 are enough to stop the current account from syncing and prevent OneDrive from starting automatically.
Step 8: Check the result
After restarting:
- OneDrive does not start automatically.
- No OneDrive sync activity appears in the notification area.
- Desktop, Documents, and Pictures open from local paths.
- Important files open without an internet connection.
- A newly created Office document defaults to a local folder.
- If Step 7 was used, OneDrive no longer appears in File Explorer and cannot sync.
Uninstalling OneDrive
You do not need to uninstall OneDrive. Microsoft supports both unlinking and uninstalling on Windows 10 and 11.[3] Leaving it installed but unlinked makes it easier to reverse these changes later. On supported Windows editions, the policy in Step 7 provides a stronger block.
Microsoft's documentation does not support the claim that every Windows update reinstalls OneDrive with the same sync settings. Treat reports of that behavior as anecdotal rather than a rule.
What this guide leaves out
- Scheduled tasks are not included because their names and availability vary between Windows builds. Microsoft does not use them in its main instructions for turning off OneDrive.
- The
OnlineStorageOffice registry value is omitted because the available sources did not establish that it is a reliable current setting. - The guide avoids broad claims that Microsoft "reads everything." Cloud services process stored content for security and service operation, but that does not prove every wider surveillance claim made about them.
Rollback
- If Step 7 was used, set Prevent the usage of OneDrive for file storage to Not configured or Disabled and restart.
- Re-enable Microsoft OneDrive under Task Manager → Startup apps.
- Start OneDrive and sign in.
- Review folder-backup prompts carefully before enabling Desktop, Documents, or Pictures backup again.
Related notes
- Explore the Digital Garden: more practical notes on systems, infrastructure, and personal knowledge management.
- Disclaimer: verify technical steps against your current Windows build before applying them.
Sources
[1] https://support.microsoft.com/en-us/onedrive/save-disk-space-with-onedrive-files-on-demand-for-windows — Save disk space with OneDrive Files On-Demand for Windows
[2] https://support.microsoft.com/en-us/onedrive/back-up-your-folders-with-onedrive — Back up your folders with OneDrive
[3] https://support.microsoft.com/en-us/onedrive/turn-off-disable-or-uninstall-onedrive — Turn off, disable, or uninstall OneDrive
[4] https://support.microsoft.com/en-us/office/collab-files/customize-the-save-experience-in-office — Customize the save experience in Office
[5] https://learn.microsoft.com/en-us/windows/client-management/mdm/policy-csp-system — Policy CSP - System: DisableOneDriveFileSync
[6] https://support.microsoft.com/en-us/windows/deployment/updates-lifecycle/windows-10-support-has-ended-on-october-14-2025 — Windows 10 support has ended on October 14, 2025