remove any jpg file under a root foler terminal code example Example: ubuntu delete all files with extension cd <dir> find . -type f -iname \*.jpg -delete