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.

Before you begin

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]

  1. Select the OneDrive cloud icon in the notification area.
  2. Open Help & Settings → Settings → Sync and backup → Advanced settings.
  3. 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.
  4. Wait for syncing to finish. Confirm that required files show a green locally available or always-available status rather than a blue cloud.
  5. 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]

  1. Open OneDrive Settings → Sync and backup → Manage backup.
  2. Turn off backup for each enabled folder.
  3. Choose Keep the files only on my PC.
  4. If OneDrive reports that cloud-only files cannot be moved, return to Step 1 and mark them Always keep on this device.[2]
  5. Let all file operations finish before closing OneDrive.
Important

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:

  1. Open OneDrive Settings → Account.
  2. Select Unlink this PC → Unlink account.
  3. 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

  1. Open Task Manager.
  2. Select Startup apps on Windows 11, or the Startup tab on Windows 10.
  3. Select Microsoft OneDrive → Disable.
  4. If OneDrive is still running, use its tray menu to select Quit OneDrive.
  5. Restart Windows.

Menu labels can differ slightly by Windows and OneDrive version.

Step 6: Make Microsoft Office save locally

In Word, Excel, and PowerPoint:

  1. Open File → Options → Save.
  2. Enable Save to Computer by default.
  3. 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]

  1. Press Win+R, enter gpedit.msc, and press Enter.
  2. Go to:
Computer Configuration
  → Administrative Templates
  → Windows Components
  → OneDrive
  1. Open Prevent the usage of OneDrive for file storage.
  2. 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:

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

Rollback

  1. If Step 7 was used, set Prevent the usage of OneDrive for file storage to Not configured or Disabled and restart.
  2. Re-enable Microsoft OneDrive under Task Manager → Startup apps.
  3. Start OneDrive and sign in.
  4. Review folder-backup prompts carefully before enabling Desktop, Documents, or Pictures backup again.

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