How to find and remove files in Linux/Unix

To remove multiple files such as *.tmp with one command find, use find . -name "*.tmp"-exec rm -rf {} ; OR find . -type f -name "*.tmp" -exec rm -f {} ; The only difference between above two syntax is that first command can remove irectories as well where second command only removes files.