Command-line tool
osx-trash
brew/osx-trash
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Allows trashing of files instead of tempting fate with rm
At a glance
- Type
- Command-line tool
- Install on
- macOS
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
macOS
brew install osx-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
- trash-cli
Command-line interface to the freedesktop.org trashcan - trash
CLI tool that moves files or folder to the trash - macos-trash
Move files and folders to the trash - gtrash
Featureful Trash CLI manager: alternative to rm and trash-cli - rmtrash
Move files and directories 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… - 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…
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents