delete all files in a directory terminal code example
Example 1: terminal delete all files that start with
find . -name 'name*' -exec rm {} \;
Example 2: how to remove all files with a certain file type in terminal
rm -rf ./*.tmp
find . -name 'name*' -exec rm {} \;
rm -rf ./*.tmp