rmdir dir ...
If a file has no write permission and the standard input is a terminal, its permissions are printed and a line is read from the standard input. If that line begins with `y' the file is deleted, otherwise the file remains. No questions are asked and no errors are reported when the -f (force) option is given.
If a designated file is a directory, an error comment is printed unless the optional argument -r has been used. In that case, rm recursively deletes the entire contents of the specified directory, and the directory itself. The current directory is specified when the string "" is given as the designated file.
If the -i (interactive) option is in effect, rm asks whether to delete each file, and, under -r, whether to examine each directory.
The null option - indicates that all the arguments following it are to be treated as file names. This allows the specification of file names starting with a minus.
Rmdir removes entries for the named directories, which must be empty.