ubuntu rmdir and all files code example
Example 1: linux remove folder and all his content
rm -rf /path/to/directory
Example 2: ubuntu delete directory and all files
rm -rf ./test
Example 3: linux remove folder and all his content
rm -f /path/to/directory/{*,.*}