Removing a folder and its contents in Widnows is not something that i spend a lot of thought on, i just do it. However, trying to do the same on red hat Linux, really stumped me. Each time i tried “rmdir” its told me that the directory was not empty. After some googling i found the below command.
sudo rm -fr /dir/subdir
sudo, so that its running as root and then the “-fr” to force and run recursively. More details on the rm command, can be found here