Delete .ds_store files in OneDrive on Mac

This is the “find” command to remove all (including OneDrive) .ds_store in a particular directory:

find . -type f -name '.DS_Store' -exec rm {} \;

Pay attention to the “.”, run the command only at the directory level you would like to search and execute.

Leave a comment

What do you think?