delete a folder and its contents in ubuntu code example
Example 1: ubuntu delete directory and all files
rm -rf ./test
Example 2: ubuntu delete contents of folder
To remove all non-hidden files and sub-directories (along with all of their contents) in a
directory use:
rm -r /path/to/directory/*