CurseDelete 2
A native, high-performance deletion engine for files and directory trees that refuse to die. It deletes while it scans, tunes its own concurrency to the storage it runs on, and will never delete a filesystem or SMB share root.
- Version
- v2.0.0
- Platforms
- macOS, Windows, Linux
- Binary
cursdel(Rust)- Changes
- Release notes
$ cursdel /tmp/scratch/old-build --dry-run CurseDelete 2 Target: /tmp/scratch/old-build Mode: normal (dry-run) Workers: auto -> 10 Files scanned: 4 Directories scanned: 3 Would delete: Files: 4 Directories: 3 Data: 20.0 B No files were modified.
Deleting large or difficult trees, safely and fast
Standard delete tools either walk a whole tree into memory before acting, or offer no protection against deleting a filesystem or share root. CurseDelete streams deletion as it enumerates, so memory stays bounded whatever the tree size, and root protection is enforced structurally by two independently tested layers.
Where it earns its keep
- Retention cleanup for aged files and logs
- Build, release and CI cleanup jobs
- Large or slow storage: network shares and spinning disks
- Locked-file remediation on Windows file servers
Features
- Streaming deletion
- Enumeration and deletion overlap — deletion starts before the tree is fully walked, with bounded memory use regardless of tree size.
- Adaptive concurrency
- --workers auto hill-climbs to a good worker count for the storage target it is running against, or --workers N gives an exact override.
- Structural root protection
- A filesystem or SMB share root can never be deleted — including via a symlink or junction disguising one — enforced by two independently tested layers.
- Symlink-safe traversal
- A symlink or junction found inside a target tree is always deleted as the link object itself, never followed.
- Retention cleanup
- --age/--age-by with a mandatory duration unit; directories are removed only once genuinely empty, and the target directory itself is always preserved.
- Composable filters
- --include/--exclude/--min-size/--max-size, with exclude always winning ties.
- Machine-readable output
- --json with a versioned schema and a frozen exit-code contract for automation.
- Lock handling
- --kill-locks for local process locks, and a Business/Enterprise-only --close-remote-locks for supported Windows file servers.
Platform support
Each platform uses its own native filesystem primitives rather than a portability layer.
| Platform | Status | Implementation |
|---|---|---|
| macOS | Implemented and tested | Native Darwin/POSIX primitives (openat/unlinkat/fstatat) — the reference PlatformEngine implementation. |
| Windows | Implemented | Native Win32 primitives (FindFirstFileExW, FILE_DISPOSITION_INFO_EX with DeleteFileW/RemoveDirectoryW fallback), ownership/ACL remediation, Restart Manager for --kill-locks. |
| Linux | Implemented | Native openat/unlinkat/statx primitives via libc, with /proc-based local lock-holder discovery for --kill-locks. |
Install
Prebuilt release binaries aren't published yet, so building from source is currently the only way to get cursdel. You need a current stable Rust toolchain.
git clone https://github.com/repasscloud/cursedelete-2.git
cd cursedelete-2
cargo build --release -p cursdel-cli
./target/release/cursdel --versionEditions
The full deletion engine runs at full speed in every edition, including the free Community edition. Paid editions cover commercial-use rights, scale and support. The only feature gated at runtime is --close-remote-locks.
Business
$199 AUD
IT departments, DevOps teams, MSPs, file-server admins, build/release infrastructure
Purchase BusinessEnterprise
$1499 AUD
Organisation-wide deployment, negotiated scale, priority support
Purchase EnterpriseSold by RePass Cloud Pty Ltd, ABN 74642243801. Payments are processed by Stripe and licences are issued after purchase. Use of CurseDelete 2 is subject to the CurseDelete licence terms ↗ and our Terms of Service. See the Refund Policy and Privacy Policy. For questions about editions, scale or Enterprise terms, email hello@repasscloud.com.
Release notes
- Read the unreleased notes
Unreleased
Targets 2.1.0 (the workspace version is already bumped).
- Read the v2.0.0 notes
v2.0.0