Fix OneDrive for Mac Sync Issues Caused by .DS_Store Files
Question details
Find and remove unwanted hidden .DS_Store files from a local OneDrive folder when investigating a sync issue.

- Product
- Microsoft OneDrive for Mac
- Device & OS
- macOS
- Scenario
- OneDrive appears to be synchronizing for an extended period, and hidden .DS_Store files may be involved.
- Observed behavior
- The OneDrive menu bar icon shows a circle with two arrows, while .DS_Store files are not normally visible in Finder or on the OneDrive website.
Locate the affected OneDrive folder in Finder and confirm its path before using Terminal. Check the OneDrive menu bar icon for any reported sync errors; the rotating arrows alone indicate activity, not necessarily a failure.
Find and remove unwanted .DS_Store files from OneDrive
Use Terminal to review hidden .DS_Store files in an affected folder and remove them if they are unwanted.
.DS_Store files hold Finder folder-view settings. macOS may recreate them, and removing them does not guarantee that a OneDrive sync problem will be resolved.
In Finder, open your local OneDrive folder. To check its location, right-click the folder and select Get Info, or drag the folder into Terminal to insert its path.
Open Applications > Utilities > Terminal and run find "/YourOneDrivePath/" -name ".DS_Store" -type f -print, replacing the quoted path with the actual folder path. Use a specific affected folder or the entire local OneDrive folder.
Review the paths printed in Terminal. If the files are confirmed to be unwanted, run find "/YourOneDrivePath/" -name ".DS_Store" -type f -exec rm {} \; with the same verified folder path. Do not delete other or historical files unless you have confirmed they are unwanted.
Click the OneDrive icon in the macOS menu bar and allow synchronization to finish. If errors remain, open the sync activity or error details from the OneDrive menu and check the files named there.
Check the OneDrive menu for settings and version information, then update OneDrive if an update is available. Open System Settings > General > Software Update to check for macOS updates.

Work on Office files with WPS Office for Mac
WPS Office is a free, lightweight alternative for working with documents, spreadsheets, and presentations in a familiar interface. Its Office format support helps make migration straightforward, though it does not repair OneDrive sync issues.

Frequently Asked Questions
What are .DS_Store files on a Mac?
They are hidden files that store Finder folder-view settings. macOS can recreate them after they are removed.
How can I see .DS_Store files in my OneDrive folder?
In Terminal, run find "/YourOneDrivePath/" -name ".DS_Store" -type f -print, replacing the quoted path with your local OneDrive folder or an affected subfolder.
Does the circle with two arrows mean OneDrive is blocked?
Not necessarily. It indicates sync activity. Click the OneDrive icon in the menu bar to check progress and look for reported sync errors.
What should I do if removing .DS_Store files does not fix syncing?
Click the OneDrive menu bar icon and inspect the sync activity or error details for other affected files. Also check for OneDrive updates and open System Settings > General > Software Update to check macOS.




