MPE/iX Shell and Utilities Reference Manual, Vol 2
rmdir(1) MPE/iX Shell and Utilities rmdir(1)
NAME
rmdir — remove directory
SYNOPSIS
rmdir [–p] directory ...
DESCRIPTION
The rmdir command removes each requested directory. Each directory must be empty for
rmdir to be successful.
Options
rmdir accepts the following option:
–p removes all intermediate components. For example,
rmdir -p abc/def/ghi
is equivalent to
rmdir abc/def/ghi
rmdir abc/dec
rmdir abc
DIAGNOSTICS
Possible exit status values are:
0 Successful completion.
1 Failure because directory is not a directory, or because it still contains files or subdirec-
tories.
2 Failure because of an invalid command line option, or no directory names specified.
Messages
Message: rmdir: directory pathname: system error
Cause: See syserror(3).
Action: See syserror(3).
Message: Unknown option "–option"
Cause: You specified an option that is not valid for rmdir.
Action: Check the DESCRIPTION section for a list of valid rmdir options.
PORTABILITY
POSIX.2. x/OPEN Portability Guide 4.0. All UNIX systems.
Commands and Utilities 1-497