delete files with suffix linux code example
Example 1: ubuntu delete all files with extension
cd <dir>
find . -type f -iname \*.jpg -delete
Example 2: how to delete files in linux
rm <file> .. rm -r <file> .. r stands for recursive
cd <dir>
find . -type f -iname \*.jpg -delete
rm <file> .. rm -r <file> .. r stands for recursive