RMDIR(1) General Commands Manual RMDIR(1)

rmdir - Remove the DIRECTORY(ies), if they are empty.

rmdir [OPTION]... DIRECTORY...

Remove the DIRECTORY(ies), if they are empty.

ignore each failure that is solely because a directory is non-empty
remove DIRECTORY and its ancestors; e.g., 'rmdir -p a/b/c' is similar to rmdir a/b/c a/b a
output a diagnostic for every directory processed
Print help
Print version
<dirs>

v(uutils coreutils) 0.11.0

2026-09-01