rm file ending with code example
Example 1: rm files with extension
find . -name "*.bak" -type f -delete
Example 2: linux remove all files same extension in directory
find . -type f -iname \*.zip -delete
find . -name "*.bak" -type f -delete
find . -type f -iname \*.zip -delete