Linux - Delete all files with a specific file type

In linux, we can use the following command to delete all files with a specific file type:


$ find /my/file/path -type f -iname "*.pyc" -exec rm -f {} \;

Comments