rmdir.1 (1000B)
- .\" utils-std: Collection of commonly available Unix tools
- .\" Copyright 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
- .\" SPDX-License-Identifier: MPL-2.0
- .Dd 2024-08-30
- .Dt RMDIR 1
- .Os
- .Sh NAME
- .Nm rmdir
- .Nd remove directories
- .Sh SYNOPSIS
- .Nm
- .Op Fl pv
- .Op Fl -ignore-fail-on-non-empty
- .Ar directory...
- .Sh DESCRIPTION
- The
- .Nm
- utility removes each given
- .Ar directory .
- .Sh OPTIONS
- .Bl -tag -width aa
- .It Fl -ignore-fail-on-non-empty
- Ignore failures to remove non-empty directories
- .It Fl p
- Remove all parents directories present in the
- .Ar directory
- argument, but not beyond.
- This is effectively the opposite of
- .Cm mkdir
- .Fl p
- .Ar directory
- .It Fl v
- Verbose, print each action done
- .El
- .Sh EXIT STATUS
- .Ex -std
- .Sh SEE ALSO
- .Xr rm 1
- .Sh STANDARDS
- .Nm
- should be compliant with the
- IEEE Std 1003.1-2024 (“POSIX.1”)
- specification.
- .Pp
- The
- .Fl v
- and
- .Fl -ignore-fail-on-non-empty
- options are extensions.
- .Sh AUTHORS
- .An Haelwenn (lanodan) Monnier Aq Mt contact+utils@hacktivis.me