Difference between rmdir and rm -r
rm -r
removes a directory and all its contents; rmdir
will only remove a directory if the directory is empty. I like to use the following to remove a directory and all its contents:
rm -rf <directory_to_be_removed>