██████╗ ███╗ ███╗██╗ ██╗ ██╔══██╗████╗ ████║╚██╗██╔╝ ██████╔╝██╔████╔██║ ╚███╔╝ ██╔══██╗██║╚██╔╝██║ ██╔██╗ ██║ ██║██║ ╚═╝ ██║██╔╝ ██╗ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝
⚡ Fast Parallel Deletion for Windows
Quickly delete files, folders, and resolve file locking issues at blazing speed
| 🖥️ Explorer vs rmx | ⚡ Terminal Benchmark |
![]() |
![]() |
| Windows Explorer delete vs rmx — night and day | rmx vs rmdir /s /q — parallel wins |
Benchmark: 476 MB / 51,705 files+directories (npm node_modules, 3-run average)
| Rank | Method | Time | vs rmx |
|---|---|---|---|
| 🥇 | ⚡ rmx | 4,120 ms | 1.00x |
| 🥈 | cmd rmdir /s /q | 7,496 ms | 1.82x slower |
| 🥉 | PowerShell Remove-Item | 7,623 ms | 1.85x slower |
| 4 | Git Bash rm -rf | 8,394 ms | 2.04x slower |
| Feature | Description |
|---|---|
| 📁 Files & Folders | Delete individual files, directories, and batch deletions seamlessly |
| 🔥 POSIX Delete | Uses FILE_DISPOSITION_POSIX_SEMANTICS for immediate namespace removal |
| ⚡ Parallel | Multi-threaded workers with dependency-aware scheduling |
| 🎯 Direct API | Bypasses high-level abstractions using native Windows API |
| 📏 Long Paths | Handles paths >260 characters with \\?\ prefix |
| 🔄 Auto Retry | Exponential backoff for locked files |
| 🔓 Delete Locked Items | Terminate processes locking files/directories and delete them with --kill-processes |
| 🔓 Unlock Items | Unlock files/directories by closing handles and terminating locking processes without deletion using --unlock |
# Add the rmx bucket
scoop bucket add rmx https://github.com/zerx-lab/rmx
# Install
scoop install rmx# Install from GitHub
cargo install --git https://github.com/zerx-lab/rmx
# Or install from local source
cargo install --path .Download the latest release from GitHub Releases.
# Self-upgrade (recommended)
rmx upgrade
# Only check for updates
rmx upgrade --check
# Force upgrade, bypass package manager detection
rmx upgrade --forceOr update via your package manager:
# Scoop
scoop update rmx
# Cargo
cargo install --git https://github.com/zerx-lab/rmx --force# Delete a single directory
rmx ./node_modules
# Delete multiple directories at once
rmx ./target ./node_modules ./dist
# Recursively delete directory and contents
rmx -r ./build_output# Delete a single file
rmx ./log.txt
# Delete multiple files
rmx ./file1.txt ./file2.log ./cache.db# Terminate processes locking files/directories and delete them
rmx --kill-processes ./locked_directory
# Force termination, recursive deletion with locking process cleanup
rmx -rf --kill-processes ./path# Only unlock a file without deleting it
rmx --unlock ./locked_file.txt
# Unlock a directory without deleting it
rmx --unlock ./locked_directory
# Unlock with verbose output to see process details
rmx --unlock -v ./path# Dry run (preview what would be deleted without actually deleting)
rmx -n ./node_modules
# Verbose mode with detailed statistics
rmx -v --stats ./target
# Force deletion (skip confirmation prompt)
rmx --force ./path# Upgrade to the latest version
rmx upgrade
# Only check if a new version is available
rmx upgrade --check
# Force upgrade, bypass package manager detection
rmx upgrade --forcermx auto-detects the installation method (Scoop, Cargo, npm). For manual installations, it downloads the latest release from GitHub and replaces the binary in-place.
Initialize rmx shell extension for Windows Explorer right-click menu:
# Initialize shell extension (install or reinstall)
rmx initAfter initialization, right-click any file or folder to see the "Delete with rmx" submenu with "Delete", "Delete (no process kill)" and "Unlock".
Note: Run PowerShell or CMD as Administrator for the init command.
The progress, confirmation, error and unlock windows follow --lang:
# Use English
rmx --gui --lang en -r ./node_modules
# Use Chinese
rmx --gui --lang zh -r ./node_modules
# Follow the settings key, then the Windows interface language (default)
rmx --gui --lang auto -r ./node_modulesThe Explorer menu follows the Language value in
HKCU\Software\rmx\Settings, and then the Windows UI language. Set that value
to change the menu language:
reg add "HKCU\Software\rmx\Settings" /v Language /t REG_SZ /d en /fWith auto (the default), the windows use the same order as the menu.
Without a recognized Language value, a Chinese Windows shows Chinese and
every other language shows English. The --lang zh and --lang en values
override the setting for the windows only. The command line output stays
English in every language.
| Option | Description |
|---|---|
-r, -R, --recursive |
Remove directories and their contents recursively |
-f, --force |
Force deletion without confirmation |
-t, --threads <N> |
Number of worker threads (default: CPU count) |
-n, --dry-run |
Scan but don't delete |
-v, --verbose |
Show progress and errors |
--stats |
Show detailed statistics |
--no-preserve-root |
Do not treat '/' specially |
--kill-processes |
Terminate processes locking files/directories, then delete them |
--unlock |
Only unlock files/directories (close handles) without deleting |
--lang <LANG> |
Interface language: zh, en or auto (the settings key, then the Windows UI language; default) |
| Subcommand | Description |
|---|---|
init |
Initialize shell extension (Windows Explorer right-click menu) |
uninstall |
Remove shell extension and context menu handler |
upgrade |
Upgrade rmx to the latest version from GitHub Releases |
upgrade --check |
Only check for updates without installing |
upgrade --force |
Force upgrade, bypass package manager detection |
| Protection | Description |
|---|---|
| 🚫 System directories | Cannot delete C:\Windows, C:\Program Files, etc. |
| 🏠 Home directory | Cannot delete user's home directory |
| 📂 Current directory | Warns when deleting CWD or its parents |
| ✅ Confirmation | Asks for confirmation by default (use -f to skip) |
CreateFileWwithFILE_SHARE_DELETEfor non-blocking accessSetFileInformationByHandlewithFILE_DISPOSITION_INFORMATION_EXFILE_DISPOSITION_POSIX_SEMANTICSfor immediate removalFILE_DISPOSITION_IGNORE_READONLY_ATTRIBUTEfor read-only filesFindFirstFileExW/FindNextFileWfor fast enumeration
When a file is locked by another process:
- Retry up to 10 times with exponential backoff (10ms → 100ms)
- If still locked, record failure and continue with other files
- Report all failures at the end
- Windows 10 version 1607 or later
- NTFS filesystem
MIT
Made with ❤️ for Windows developers

