To remove multiple files such as *.jpg or *.sh with one command find, use:
find . -name "FILE-TO-FIND" -exec rm -rf {} \;
OR
find . -type f -name "FILE-TO-FIND" -exec rm -f {} \;
The only difference between above two syntax is that the first command remove directories as well where second command only removes files. Options:
-name "FILE-TO-FIND"
: File pattern.-exec rm -rf {} \;
: Delete all files matched by file pattern.-type f
: Only match files and do not include directory names.