rmdir
Purpose
Delete a specified directory (provided that the directory is empty).
Syntax
rmdir [options] directory
Options
-p removes any parent directories that become empty.
Description
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.