Skip to main content

How to remove all .DS_Store, ._* files in a folder

If you want to recursively delete all .DS_Store files in a subfolder, you can run the following commands. First, see what is being deleted:

find . -name '.DS_Store' -type f

Then, delete those files:

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

And also:

find . -name "\._*" -exec rm {} \;

.^.

pretty face

https://cityad-all-prod.s3.amazonaws.com/public/2025-12/adfb26afd69cba95752ecf626620a7e2.jpg
Please login to post comments: _TODO