rmdir
rmdir: remove empty directories.
Synopsis
rmdir dir…
Description
rmdir removes each dir named, which must be empty. A directory that can’t be removed is reported on standard error as rmdir: dir: reason and the rest are still tried.
Exit status
0 if every directory was removed (or none was named), 1 if any could not be.
Notes
There are no options: no -p to remove parent directories too.
See also
mkdir(1), rm(1)