How to delete all .DS_Store files recursively on the command line
Use this command to recursively delete all .DS_Store files present in the directory mydir and all its subdirectories:
delete_ds_store.sh
find mydir -type f -name .DS_Store -print0 | xargs -0 rmWarning: Deleting the files can’t be undone.
Check out similar posts by category:
Linux
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow