rmdir
This command can be used to remove directories when they are no longer required. Before removing a directory it should be ensured in which it does not hold any files that are it should be empty. The directory will not be removed if there are files in the directory when rmdir is executed.
Syntax
rmdir [ [options] dir-name ]
For instance,
# cd /user/sunil/fruits/
# rmdir apple
By this code the directory apple is removed. The user has to modify to the corresponding parent directory, only then the files could be deleted.
Note: The directories which have to be removed must be empty. The blank directory has two entries, the Dot (.) representing itself and the..(dot dot ) displaying the parent directory. Further than one directory can be removed at a time.