delete a directory with files in code example
Example 1: remove directory from linux
rm -r filename
rm -rf filename
this command remove the directory and subdirectory forecefully
Example 2: linux remove folder and all his content
rm -f /path/to/directory/{*,.*}