🦀 sTrash securely deletes trash and files.
A program that runs on top of shred to clean the recycle bins and files safely without leaving a trace. Completely rewritten in Rust from a previous Python implementation, ensuring performance, cross-environment compatibility, and safety.
Before configuring and executing sTrash, ensure you have the following packages installed on your Linux system:
gio: Standard CLI utility typically found in Glib packages.shred: Required for secure deletion logic.zenity: Required for confirmation in the window and to view the process in the window (STRASH_USE_ZENITY=1).
Automatic Installation (Any Linux Distribution)
You can install without downloading anything by running the script directly from the official repository:
bash <(curl -fsSL https://raw.githubusercontent.com/evolvbits/strash/main/installer/linux.sh)You can use the built-in CLI options to target specific files, change iterations, or let it auto-clean all trash directories detected:
strash [OPTIONS]-t, --target <TARGET>: remove a specified folder or file (recursive for folders)--confirm: skip confirmation even with Zenity/progressbar-n, --iterations <N>: replaces N times instead of 3, the default [default: 3]-k, --kill: safely remove and close the terminal (terminal only)-c, --credits: show credits-V, --version: display the version
See ENVIRONMENT.md for details on environment variables to control the UI and progress bar.
cargo build --releaseThe binary will be located in target/release/strash.
Uninstalling is as easy as installing, just use the --uninstall flag:
bash <(curl -fsSL https://raw.githubusercontent.com/evolvbits/strash/main/installer/linux.sh) --uninstall© Evolvbits - All rights reserved.