Deleting files in Linux

Use the following command to delete a directory and its files

rm -rf directory

or in a more complicated way

find dirname ! -type d -exec rm \{\} \;

where dirname is the root of the directory tree you want to delete.