I want to delete ._DS_Store file from the parent folder and all sub folders. How to delete the .DS_Store file recursively from all folders with single command? (using rm -rf command)
find parent_dir -name .DS_Store -delete
With GNU find at least. Otherwise
find parent_dir -name .DS_Store -print0 | xargs -0 rm -f
Or
find parent_dir -name .DS_Store -exec rm -f +
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With