how do you remove the contents of a directory in ubuntu code example
Example: 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/*
To remove all non-hidden files and sub-directories (along with all of their contents) in a
directory use:
rm -r /path/to/directory/*