Command rmdir
This command is part of the posix extensions and needs to be imported to be available to the shell.
See Posix Commands
Name
rmdir removes (deletes) directoriesSynopsis
rmdir [options] dir [dir ...]Options
-f | force deletion |
Description
Removes (deletes directory) each argument. If the directory is not empty then this command fails.
See rm to recursively delete directories and files
Return Value
Returns 0 if the command executed successfully, 1 if there was an error.Commands
CategoryCommands
CommandsPosix