Recursively remove .DS_Store files

If your working on a coding project and your submitting it to version control, heres how to remove the meta-schmeg that OS X leaves around:

find . -name '*.DS_Store' -type f -delete

If your using GIT as your versioning control system then I’d suggest making a .gitignore file in the root of the project after running this command and before you git init to save yourself some bother.

1 thought on “Recursively remove .DS_Store files”

Comments are closed.