Skip to Content
gnux

--ignore-fail-on-non-empty

Ignore each failure that is solely because a directory is non-empty.

An option of rmdirx.

Usage

rmdirx --ignore-fail-on-non-empty DIRECTORY...

Details

ShortLongValueDefaultMeaning
--ignore-fail-on-non-emptynoneignore each failure that is solely because a directory is non-empty

Examples

Clean up whatever is empty without failing on the rest

rmdirx --ignore-fail-on-non-empty cache logs tmp

Prune parents as far as they are empty, stopping quietly at the first that is not

rmdirx -p --ignore-fail-on-non-empty keep/sub

Help in the terminal

gnux help rmdirx --ignore-fail-on-non-empty

On this page