if for some reason you are trying to delete a directory you don't need anymore but its not empty and the system is not letting you delete it. well, i've run into this problem myself, and i the hopes of helping people out, i am writing this short how to tutorial how you can delete the directory anyway after you get this error.

send this command at the shell prompt:

rmdir -rf whatever

*whatever is the name of your directory