linux remove all file with extension code example
Example 1: rm files with extension
find . -name "*.bak" -type f -delete
Example 2: ubuntu delete all files with extension
cd <dir>
find . -type f -iname \*.jpg -delete
Example 3: linux remove all files same extension in directory
find . -type f -iname \*.zip -delete