How to Stop OneDrive from Synchronizing Unwanted SharePoint Folders
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.

- 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.
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.
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.
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.
Right-click the OneDrive cloud icon in the Windows taskbar, click the gear icon (Help & Settings), and select 'Settings'.
Navigate to the 'Account' tab, find the SharePoint location, and click 'Choose folders'. Carefully uncheck the unwanted SharePoint folders.
To prevent sync confusion, avoid selecting and deselecting different subfolders at multiple nested levels. Stick to top-level folder selections whenever possible.

Enable OneDrive Files On-Demand
Using Files On-Demand allows you to see all SharePoint files in Windows Explorer without actually downloading the data, immediately freeing up local disk space.
Map SharePoint as a Network Drive
If OneDrive synchronization remains unreliable for complex SharePoint sites, mapping the document library as a network drive bypasses the sync client entirely.
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. Download the installer: Visit the official WPS website and download the free WPS Office installation package.
- 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. Open Office files instantly: Double-click any existing Microsoft Office document to open and edit it directly without needing any format conversion.

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.




