rmdir

Remove folder(s), if they are empty.

SYNTAX
      rmdir [OPTION]... folder...

OPTIONS
      --ignore-fail-on-non-empty
                  ignore each failure that is solely because the
                  directory is non-empty

  -p, --parents   remove explicit parent directories if being emptied

      --verbose   output a diagnostic for every directory processed

      --help      display this help and exit

      --version   output version information and exit

Related commands:

ls - List information about files (use ls-al to see if they are empty)
rm - Remove files (rm -rf will recursively remove folders and their contents)

Equivalent Windows NT commands:

DEL - Delete one or more files
RD - Delete folders or entire folder trees (DELTREE)



Back to the Top

Simon Sheppard
SS64.com