Command-line tool
trash
brew/trash
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
CLI tool that moves files or folder to the trash
At a glance
- Type
- Command-line tool
- Install on
- macOS
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
macOS
brew install trash
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
- macos-trash
Move files and folders to the trash - filen-cli
Interface with Filen, an end-to-end encrypted cloud storage service linux macos windows cli server webdav s3 mac filen… - rmtrash
Move files and directories to the trash - gtrash
Featureful Trash CLI manager: alternative to rm and trash-cli - recycle-bin
Move files and folders to the Windows recycle bin within command line. - trash-cli
Command-line interface to the freedesktop.org trashcan - osx-trash
Allows trashing of files instead of tempting fate with rm - git-filter-repo
Quickly rewrite git repository history
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents