RMDIR(1) General Commands Manual RMDIR(1)

# [NAME](#NAME)

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

# [SYNOPSIS](#SYNOPSIS)

**rmdir** \[OPTION]... DIRECTORY...

# [DESCRIPTION](#DESCRIPTION)

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

# [OPTIONS](#OPTIONS)

[**--ignore-fail-on-non-empty**](#ignore)

ignore each failure that is solely because a directory is non-empty

[**-p**, **--parents**](#p)

remove DIRECTORY and its ancestors; e.g., 'rmdir -p a/b/c' is similar to rmdir a/b/c a/b a

[**-v**, **--verbose**](#v)

output a diagnostic for every directory processed

[**-h**, **--help**](#h)

Print help

[**-V**, **--version**](#V)

Print version

&lt;*dirs*&gt;

# [VERSION](#VERSION)

v(uutils coreutils) 0.12.0

2026-10-12

---

Document: rmdir(1) from uutils 0.12.0-r3 (Chainguard OS)
Source: https://github.com/uutils/coreutils
