Deletes the specified directory (if it is empty).
rmdir [options] directory
-p: remove all parent directories which become empty.
-i: stands for interactively
-r: stands for recursively
-f: stands for forcefully
The command rmdir removes empty directories. If the directory is not empty, you must remove all files along with the directory using the command rm -r.