OneDrive File Issues

How to Stop OneDrive from Synchronizing Unwanted SharePoint Folders

Ayan MasoodAyan Masood Nov 2, 2026 871 views

Question details

The user needs to prevent OneDrive from automatically syncing deselected SharePoint folders to their local drive to manage local storage and avoid sync errors.

How to Stop OneDrive from Synchronizing Unwanted SharePoint Folders
Product
OneDrive and SharePoint
Device & OS
Windows
Scenario
Configuring selective synchronization in OneDrive to only sync specific SharePoint folders to local storage.
Observed behavior
Deselected SharePoint folders continue to sync locally, creating unwanted local copies and displaying red X sync error icons in Windows Explorer.
Before you start

Ensure you have a stable internet connection and wait for any pending essential file uploads to finish before resetting or modifying your OneDrive synchronization settings.

Solution 1Recommended

Reset OneDrive and Reconfigure Selective Sync

Resetting the OneDrive client clears persistent cache issues that cause deselected folders to continue syncing locally.

OneDrive's sync engine occasionally struggles with complex hierarchies where folders are selected or deselected at multiple nested levels. Resetting the app forces a fresh check of your configuration preferences.

1
Execute the reset command

Press Windows + R to open the Run dialog. Type '%localappdata%\Microsoft\OneDrive\onedrive.exe /reset' and press Enter. The OneDrive icon in the system tray will disappear and then reappear.

2
Open OneDrive Settings

Right-click the OneDrive cloud icon in the Windows taskbar, click the gear icon (Help & Settings), and select 'Settings'.

3
Configure folder selection

Navigate to the 'Account' tab, find the SharePoint location, and click 'Choose folders'. Carefully uncheck the unwanted SharePoint folders.

4
Simplify nested selections

To prevent sync confusion, avoid selecting and deselecting different subfolders at multiple nested levels. Stick to top-level folder selections whenever possible.

Reset OneDrive and Reconfigure Selective Sync
Important Deletion Rule: Only delete the local copies of the unwanted folders after the synchronization process has completely stopped. Deleting them beforehand may accidentally delete the source files from the SharePoint site.
Free Microsoft Office alternative

Switch to WPS Office for a Seamless Document Experience

Tired of dealing with complex Microsoft Office configurations and unpredictable OneDrive sync issues? WPS Office offers a lightweight, highly compatible alternative. Access, edit, and save your documents with native support for Microsoft formats, all within an intuitive and streamlined interface.

  1. 1. Download the installer: Visit the official WPS website and download the free WPS Office installation package.
  2. 2. Install and sign in: Run the setup file. Once installed, log in to activate free cloud features and easily link your preferred cloud drives.
  3. 3. Open Office files instantly: Double-click any existing Microsoft Office document to open and edit it directly without needing any format conversion.
Fully compatible with Microsoft Word, Excel, and PowerPoint formats (.docx, .xlsx, .pptx)Lightweight installation that ensures smooth performance on any Windows PCBuilt-in seamless cloud storage integration for reliable document managementFree to use with a familiar tabbed interface, minimizing the learning curve
microsoft office alternative - wps office

Frequently Asked Questions

Why do my SharePoint folders have a red X icon in Windows Explorer?

A red X indicates a synchronization error. This typically happens when OneDrive encounters a file conflict, runs out of local disk space, or struggles to apply selective sync settings to deeply nested folder structures.

Can I safely delete local folders after I uncheck them in OneDrive settings?

You should only delete the local folders after verifying that OneDrive has completely stopped syncing them. Deleting folders while sync is still active may cause OneDrive to interpret this as a deletion command, removing the files from the cloud SharePoint site for everyone.

Why does selective sync fail when choosing specific subfolders?

The OneDrive sync engine sometimes experiences logic conflicts with complex folder hierarchies where folders are selected and deselected at multiple nested levels. For the best stability, it is recommended to apply sync settings to top-level folders only.