linux removing a directory and contents code example Example: linux remove folder and all his content rm -f /path/to/directory/{*,.*}