Following command can be used in the terminal to remove all the file and sub directories of a given folder:
rm -r /var/www/myfolder/*
Above var/www/myfolder/ is the full path for the directory for which the files are to be deleted.
Following command can be used in the terminal to remove all the file and sub directories of a given folder:
rm -r /var/www/myfolder/*
Above var/www/myfolder/ is the full path for the directory for which the files are to be deleted.