rmdir
PURPOSE
Removes a directory.
SYNOPSIS
rm [ -fri ] file ...
rmdir dir ...
DESCRIPTION
The rmdir command removes a directory from the system.
The directory must be empty before you can remove it, and
you must have write permission in its parent directory.
Use the li -l command to see if the directory is empty.
EXAMPLE
To empty and remove a directory:
rm mydir/* mydir/.*
rmdir mydir
This removes the contents of "mydir", then removes the
empty directory. The rm command displays an error message
about trying to remove the directories . (dot) and
.. (dot dot), and then rmdir removes them.
Note that "rm mydir/* mydir/.*" first removes files with
names that do not begin with a that dot, then those with
names that do begin with a dot. You may not realize that
the directory contains file names that begin with a dot
because the li command does not normally list them.
RELATED INFORMATION
The following command: "rm."
The unlink and rmdir system calls in AIX Operating System
Technical Reference.