Fix OneDrive’s sync .ds_store error with these simple steps

by Tashreef Shareef
Tashreef Shareef
Tashreef Shareef
Windows & Software Expert
Tashreef Shareef is a software developer turned tech writer. He discovered his interest in technology after reading a tech magazine accidentally. Now he writes about everything tech from... read more
Affiliate Disclosure
OneDrive client shows sync .ds_store error
To fix various PC problems, we recommend DriverFix:
This software will keep your drivers up and running, thus keeping you safe from common computer errors and hardware failure. Check all your drivers now in 3 easy steps:

  1. Download DriverFix (verified download file).
  2. Click Start Scan to find all problematic drivers.
  3. Click Update Drivers to get new versions and avoid system malfunctionings.
  • DriverFix has been downloaded by 0 readers this month.

At times, Microsoft OneDrive may stop syncing with your Microsoft account and show .ds_store error. Several users have reported similar OneDrive sync .ds_store error in the Microsoft Community forum:

Hi, I have this issue on my mac: onedrive sync is blocked by .ds_store files. Onedrive is up to date. Mac OS is up to date. Using Office for Mac also up to date.

If you are also troubled by this, here are a couple of troubleshooting tips to help you resolve the OneDrive sync .ds_store error in macOS.

What can I do if my OneDrive client shows sync .ds_store error?

1. Fix hidden issues with a terminal command

Onedrive sync .ds_store error

  1. Open your Applications folder.
  2. Click on the Utility folder.
  3. Double-click on Terminal to launch it.
  4. Alternatively, you can also press Command + Spacebar to launch Spotlight. Type Terminal and click on the search result to launch Terminal.
  5. In the Terminal, enter the following and hit enter:
    find /users/username/onedrivepath/ -name “.DS_Store” -depth -exec rm {} ;
  6. In the above commnd “/users/username/onedrivepath” is the path being synchornized for OneDrive, so change it accordingly.
  7. Once the command is executed, relaunch the OneDrive client and check for any improvements.

Note: If you are unable to get the right path for the offending folder, try this. After launching the Terminal, type find and hit enter. Now drag and drop the offending folder onto the terminal window. The terminal will automatically detect the folder path.

2. Stop .sds_store files from syncing

Onedrive sync .ds_store error

Note: This step requires you to have Office 365 admin access.

  1. Quit OneDrive if running.
  2. Open OneDrive Admin Center on your browser.
  3. In the One Drive Center, go to Sync Settings.
  4. Check the “Block Syncing of Specific File Types” option.
  5. Next, enter .ds_store in the given field.
  6. Save and exit the account.
  7. Now go to Applications > Utilities.
  8. Double-click on Terminal to open it.
  9. In the Terminal type the following command and hit enter:
    defaults write DSDontWriteNetworkStores true
  10. Now launch a web browser and log in to your OneDrive account online.
  11. Search for all the .ds_store files and delete them.

By following the second step you can eliminate any possibilities of getting the error again.

3. Manually delete the files

Onedrive sync .ds_store error

  1. If the issue persists, try to delete the .ds_store files manually from the OneDrive folder.
  2. Open the OneDrive folder and then find all the .ds_store files.
  3. Delete the problematic files from the folder.
  4. If you are unable to delete the files, do the following.
  5. Create a new folder and move all the sub-folders and files onto the new folder.
  6. Once the files are moved, delete the offending folder completely.
  7. Now try to sync again and check for any improvements.

The ds_store files generated by the OneDrive for Mac results in the Onedrive sync .ds_store error. By following the steps in this article, you can resolve the error in no time.

If you have any additional questions or suggestions, don’t hesitate to leave them in the comments section below.


idee restoro Still having issues? Fix them with this tool:
  1. Download this PC Repair Tool rated Great on (download starts on this page).
  2. Click Start Scan to find Windows issues that could be causing PC problems.
  3. Click Repair All to fix issues with Patented Technologies (Exclusive Discount for our readers).

Restoro has been downloaded by 0 readers this month.

This article covers:Topics: