Removing a directory: rmdir

To remove a directory use the command:

   rmdir directory_name

The directory must be empty before you can delete it. You will need to remove any files and subdirectories that it contains.

A directory containing files can be removed using the rm command.