Command-line tool
trash-cli
brew/trash-cli
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Command-line interface to the freedesktop.org trashcan
At a glance
- Type
- Command-line tool
- Install on
- Windows, macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
Windows
pipx install trash_cli scoop install trashy
macOS
brew install trash-cli pipx install trash_cli
Linux
brew install trash-cli pipx install trash_cli
Send a file to the trash
trash path/to/file
List all files in the trash
trash-list
Interactively restore a file from the trash
trash-restore
Related command-line tools
- rmw
Trashcan/recycle bin utility for the command-line - trash
CLI tool that moves files or folder to the trash - macos-trash
Move files and folders to the trash - osx-trash
Allows trashing of files instead of tempting fate with rm - trasher
A small command-line utility to replace 'rm' and 'del' by a trash system - recyclarr
A command-line application that will automatically synchronize recommended settings from the TRaSH guides to your… - dabih
Command Line Interface for dabih - zuk
Yozuk command-line interface
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents