Drop-in rmdir replacement for macOS that moves directories to Trash instead of permanently deleting them.
rmdir delegates to /usr/bin/trash so every deletion is recoverable from the macOS Trash. Each argument is validated as an existing directory before trashing — non-directories and missing paths produce errors on stderr.
brew install ansilithic/tap/rmdirOr build from source (requires Xcode and macOS 14+):
make build && make installEnsure /usr/local/bin appears before /usr/bin in $PATH to shadow the system rmdir.
rmdir [--] directory ...
# Move a directory to Trash
rmdir old-project/
# Multiple directories at once
rmdir dir1 dir2 dir3
# Handle directory names starting with -
rmdir -- -temp-dirMIT