linux remove folder and all his content

Shell
rm -f /path/to/directory/{*,.*}
rm -rf /path/to/directory/*
rm -rf /path/to/directory/{*,.*}
rm -rf /path/to/directory

Source

Also in Shell: