terminal command to delete all files in a directory code example Example: terminal delete all files that start with find . -name 'name*' -exec rm {} \;