Skip to content

evolvbits/strash

sTrash

CI Version Rust

🦀 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.

Requirements

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).

Install

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)

Usage

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]

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

Environment Variables

See ENVIRONMENT.md for details on environment variables to control the UI and progress bar.

Building from Source

cargo build --release

The binary will be located in target/release/strash.

Uninstall

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

Community


© Evolvbits - All rights reserved.

About

🦀 sTrash securely deletes trash and files.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors