How to Prevent a Specific File from Synchronizing to OneDrive
Question details
The user needs a method to stop a single file from synchronizing to OneDrive while continuing to sync the rest of the folder.
- Product
- Microsoft OneDrive
- Device & OS
- not provided
- Scenario
- Attempting to exclude an individual document from cloud synchronization within an active OneDrive folder.
- Observed behavior
- OneDrive natively forces either the entire folder to be synchronized or unsynchronized, with existing user attempts resulting in hiding the file or accidentally unsyncing all items.
Before moving or deleting any files to change your sync preferences, make sure to create a local backup copy of your document to prevent accidental data loss from both your PC and the cloud.
Move the File to a Local, Unsynced Folder
Since OneDrive syncs all contents within its designated folders, moving the specific file to a directory outside of the OneDrive structure is the most reliable workaround.
OneDrive does not currently offer a native feature to block or exclude individual files within a synced folder. The easiest and safest way to exclude a single file is to store it locally outside of the OneDrive environment.
Open File Explorer (Windows) or Finder (Mac) and navigate to the specific file inside your synced OneDrive folder.
Right-click the file and select 'Cut', or select the file and press Ctrl+X (Windows) or Cmd+X (Mac).
Navigate to a local folder on your computer that is not synced to OneDrive (such as a local 'Downloads' or an unsynced 'Documents' folder). Right-click inside the folder and select 'Paste'.
Manage the Cloud Copy via OneDrive Online
If the file is already synced and you only want to remove the cloud version, you can delete it from the browser, provided you safely relocate the local file first.
Gain Better Control Over Your Files with WPS Office
If Microsoft OneDrive's rigid folder-sync limits are interrupting your workflow, consider switching to WPS Office. WPS offers an intuitive, lightweight, and highly compatible suite with flexible local saving options and seamless integration with WPS Cloud, giving you precise control over which documents go to the cloud.
- 1. Download WPS Office: Visit the official WPS Office website to download and install the free software.
- 2. Open Your Documents: Seamlessly open your existing Microsoft Office files without worrying about formatting loss.
- 3. Save with Precision: Save your sensitive files locally to your hard drive, or manually upload specific files to WPS Cloud to bypass restrictive automated sync tools.

Frequently Asked Questions
Can I hide a file to prevent OneDrive from syncing it?
No, changing a file's properties to 'Hidden' in File Explorer does not stop OneDrive from syncing it. OneDrive ignores the hidden status and will continue to upload the file to your cloud storage.
Why does deleting a file in OneDrive Online also remove it from my PC?
OneDrive uses a two-way synchronization system. If you modify or delete a file in the cloud via your browser, the OneDrive desktop application automatically replicates that change and deletes the corresponding local file on your computer to keep both locations identical.
Can I exclude specific file types from syncing to OneDrive?
While individual home users cannot easily block specific file extensions, OneDrive administrators in an enterprise or business environment can use the SharePoint admin center to block certain file types (like .exe or .mp3) from syncing.
How do I stop an entire folder from syncing to my PC?
Click the OneDrive icon in your taskbar, click the gear icon to open Settings, navigate to the 'Account' tab, and select 'Choose folders'. You can then uncheck any folders you no longer want to sync to your local computer.




