Delete .DS_STORE files in current folder and all subfolders from command line on Mac

find can do that. Just add -delete:

find . -name ".DS_Store" -delete

Extend it even further to also print their relative paths

find . -name ".DS_Store" -print -delete

For extra caution, you can exclude directories and filter only for files

find . -name ".DS_Store" -type f -delete

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)