Removes a directory
The rmdir utility deletes empty directories from the filesystem by removing links to those directories.
The directory-list contains pathnames of empty directories that rmdir removes.
Refer to the rm utility with the -r option if you need to remove directories that are not empty, together with their contents.
The following command line deletes the empty literature directory from the working directory:
$ rmdir literature
The next command line removes the letters directory, using an absolute pathname:
$ rmdir /home/jenny/letters