Removing one file type from subdirectoy

Removing one file type from a sub-directory

Via the command line

To delete one file type from the entire hard drive, or from one subdirectory: sudo find / -name “.DS_Store” -depth -exec rm {} ; The first / can be replaced with the full folder path.

.DS_Store can be replaced with any filename, or wild card, *.jpg for instance

Leave a Reply