| Crates.io | rmbrr |
| lib.rs | rmbrr |
| version | 0.1.11 |
| created_at | 2025-11-06 00:09:49.372724+00 |
| updated_at | 2025-11-07 12:16:50.142714+00 |
| description | Fast parallel directory deletion with cross-platform support |
| homepage | https://github.com/mtopolski/rmbrr |
| repository | https://github.com/mtopolski/rmbrr |
| max_upload_size | |
| id | 1918887 |
| size | 124,575 |
Windows efficient rmdir with cross-platform compatibility.
Benchmark on node_modules (28,434 files, 5,122 directories, 350 MB):
| Method | Time | vs rmbrr |
|---|---|---|
| rmbrr | 1,780ms | 1.00x |
| rimraf | 3,175ms | 1.78x slower |
| PowerShell | 6,824ms | 3.83x slower |
| cmd rmdir | 6,422ms | 3.61x slower |
| cmd del+rmdir | 7,175ms | 4.03x slower |
| robocopy /MIR | 9,528ms | 5.35x slower |
Benchmark on node_modules (28,268 files, 5,124 directories, 446 MB):
| Method | Time | vs rmbrr |
|---|---|---|
| rmbrr | 192ms | 1.00x |
| rimraf | 660ms | 3.44x slower |
| rm -rf | 711ms | 3.70x slower |
Test system: 16-core CPU, SSD. Default thread count (CPU cores).
Benchmark on node_modules (28,340 files, 5,126 directories, 413 MB):
| Method | Time | vs rmbrr |
|---|---|---|
| rmbrr | 1,170ms | 1.00x |
| rimraf | 1,270ms | 1.09x slower |
| rm -rf | 3,000ms | 2.56x slower |
Test system: 2020 M1 Macbook Pro, SSD. Default thread count (CPU cores).
npm install -g rmbrr
# or use directly
npx rmbrr ./node_modules
brew tap mtopolski/tap
brew install rmbrr
cargo install rmbrr
curl -fsSL https://raw.githubusercontent.com/mtopolski/rmbrr/main/install.sh | sh
iwr -useb https://raw.githubusercontent.com/mtopolski/rmbrr/main/install.ps1 | iex
Download from releases.
# Delete a directory
rmbrr path/to/directory
# Multiple directories
rmbrr dir1 dir2 dir3
# Dry run (scan only, don't delete)
rmbrr -n path/to/directory
# Ask for confirmation
rmbrr --confirm path/to/directory
# Show progress, completion, and timing
rmbrr --verbose path/to/directory
# Show detailed statistics
rmbrr --stats path/to/directory
# Specify thread count
rmbrr --threads 8 path/to/directory
# Force deletion of current working directory (use with caution)
rmbrr --force path/to/directory
rmbrr includes built-in safety checks to prevent accidental system damage:
--force)C:\Windows, /bin, /usr, etc.)C:\, /, etc.)$HOME, %USERPROFILE%)--force flagAll other paths can be deleted without restriction.
SetFileInformationByHandle with FILE_DISPOSITION_FLAG_POSIX_SEMANTICSremove_file/remove_dir callsMIT OR Apache-2.0