Every now and then I have needed to delete a whole directory tree. This is the correct command BUT TAKE WARNING! It will delete the whole directory tree without warning, ALL sub directories and files- so make sure you get it right or you can cause SERIOUS damage to your installation. rm -rf folder_name