tsh
is a simple command-line tool written in Rust that moves files and folders to the Trash Bin, instead of permanently deleting them.
Make sure you have Rust installed.
cargo install tsh
If installing from a local directory:
git clone https://github.com/imnyang/tsh.git
cd tsh
cargo install --path .
tsh <file_or_folder> [more_files_or_folders...]
tsh file.txt
tsh folder/ notes.md image.png
-
✅ Safe delete: files go to Trash, not permanently removed.
-
🔧 Built on the reliable trash crate.