terminal delete all files in folder 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
Example 3: how to remove all files with a certain file type in terminal
find /path -name '*.orig' -delete
Example 4: delete all empty files and folders in terminal
find /home/savona/ -type f -empty -exec rm {} \;