remove all files in folder terminal code example
Example 1: linux remove folder and all his content
rm -rf /path/to/directory/*
Example 2: linux remove folder and all his content
rm -rf /path/to/directory
Example 3: how to remove all files with a certain file type in terminal
rm -rf ./*.tmp
Example 4: how to remove all files with a certain file type in terminal
find /path -name '*.orig' -delete