Today I needed to wipe all my .srt (subtitles files) from an external hard disk, so I needed a command to find me all those *.srt and delete them.
I went into the terminal and typed:
find . -type f -name "*.srt" -exec rm -f {} \;
This will work for any kind of filetype, just change the “*.srt” to whatever we want like “*.jpg” to find and delete all JPG files