| Crates.io | del |
| lib.rs | del |
| version | 0.1.2 |
| created_at | 2025-02-09 04:48:02.418805+00 |
| updated_at | 2025-02-18 02:05:31.374853+00 |
| description | A simple crate for removing files in a secure and efficient manner. |
| homepage | https://github.com/SauersML/rm |
| repository | https://github.com/SauersML/rm |
| max_upload_size | |
| id | 1548669 |
| size | 238,421 |
del: Faster File DeletionThis is a Rust-based command-line utility that deletes files matching a given pattern in the filesystem, which aims to be faster than the "rm" command. It uses glob patterns (wildcards) for matching filenames and performs the deletions in parallel.
del does not dodel trusts that your input is what you intended.del aims to be faster than or equivalent to rm on Linux universally, and usually faster on MacOS.del uses parallel execution with a thread pool size and batch size calculated from the number of files with a formula derived from empirical optimization.To install the utility globally, run:
RUSTFLAGS="-C target-cpu=native" cargo install del
Or download the binary directly:
wget https://github.com/SauersML/rm/releases/download/v0.1.1/del-x86_64-unknown-linux-gnu.tar.gz && tar -xvzf del-x86_64-unknown-linux-gnu.tar.gz && chmod +x del
Or build the program:
RUSTFLAGS="-C target-cpu=native" cargo build --release
Run the utility with the glob pattern of the files you want to delete:
del "<pattern>"
Replace <pattern> with the glob pattern (e.g., *.log to delete all .log files).
Make sure to add the "./" if you installed via binary download.