Delete a specified directory (provided that the directory is empty).
rmdir [options] directory
-p removes any parent directories that become empty.
The rmdir command deletes empty directories. If a directory is not empty, you should use the rm -r command to delete the files, as well as the directory.