logo
search
OneDrive File Issues

How to Prevent OneDrive from Moving or Syncing Desktop Files

Elise WilliamsElise Williams Sep 30, 2026 871 views

Question details

The user needs to stop OneDrive from automatically backing up and redirecting the local Desktop and Documents folders.

How to Prevent OneDrive from Moving or Syncing Desktop Files
Product
Microsoft OneDrive
Device & OS
not provided
Scenario
Managing local files or developing software where exact file paths are required.
Observed behavior
OneDrive redirects the Desktop and Documents folders to the cloud, altering source-code file paths and causing compilation or development tools to fail.
Before you start

Before modifying your synchronization settings, create a separate local backup of your source code and important files in a directory outside of your Desktop or Documents folder to prevent accidental data loss.

Solution 1Recommended

Disable Folder Backup in OneDrive Settings

Stop OneDrive from automatically redirecting and syncing your Desktop, Documents, and Pictures folders to the cloud.

By default, OneDrive may attempt to back up your primary user folders. Disabling this feature restores the default local paths for your Desktop and Documents folders, which resolves file path errors in development tools.

1
Open OneDrive Settings

Click the OneDrive cloud icon located in the system tray on your taskbar, click the gear icon (Help & Settings), and select 'Settings'.

2
Navigate to Backup Management

Go to the 'Sync and backup' tab in the left sidebar and click the 'Manage backup' button.

3
Toggle Off Folder Backup

Turn off the toggle switches next to 'Desktop' and 'Documents' (and any other folders you want to keep strictly local), then confirm your choice to stop the backup.

Disable Folder Backup in OneDrive Settings
File Location Warning: After stopping the backup, your existing files might disappear from your local desktop. They are still safe in the OneDrive folder; open File Explorer, navigate to OneDrive, and manually drag them back to your local Desktop.
Free Microsoft Office alternative

Manage Your Documents Locally with WPS Office

If Microsoft 365 and OneDrive are causing unexpected file path changes and sync issues, consider switching to WPS Office. It provides a lightweight, locally focused experience without forced cloud synchronization, while remaining fully compatible with all your existing Microsoft Office files.

  1. 1. Download the Installer: Visit the official WPS website and click 'Download WPS Office Free' to get the lightweight installer.
  2. 2. Install WPS Office: Run the downloaded file and follow the on-screen instructions to install the software locally on your computer.
  3. 3. Open Your Files Locally: Launch WPS Office and set it as your default application to open and edit your Microsoft Office documents locally without forced cloud syncing.
Fully compatible with Microsoft Word, Excel, and PowerPoint file formats (.docx, .xlsx, .pptx).Save and manage files entirely on your local drive without forced cloud synchronization.Free, lightweight, and fast-loading alternative to Microsoft 365.Familiar user interface for a seamless migration.
QA img-9

Frequently Asked Questions

Why did my desktop files disappear after I stopped OneDrive backup?

When you stop backing up a folder, the previously synced files remain in your OneDrive directory rather than moving back to your local desktop automatically. You can retrieve them by opening File Explorer, navigating to the OneDrive folder, and manually moving them back to your local Desktop.

Does pausing OneDrive sync permanently stop it from moving files?

No, pausing synchronization is only a temporary measure. Once you restart your computer or the pause duration expires, OneDrive will resume syncing. You must disable folder backup in the settings to stop the redirection permanently.

Will deleting files from my synced Desktop also delete them from the cloud?

Yes, if a folder is actively being synced by OneDrive, deleting a file locally will also remove it from the cloud and move it to the OneDrive recycle bin. Always confirm your sync settings or move files to an un-synced folder before deleting.