Skip to content

About

Move files and folders to the trash

Topics

Resources

Code of conduct

Contributing

Stars

461 stars

Watchers

11 watching

Forks

Repository files navigation

macos-trash

Move files and folders to the trash

Requires macOS 13 or later.

Since macOS 15, there is now a built-in trash command. The benefit of the binary here is that it has a --interactive flag and it fixes “Put Back” being broken.

Install

brew install macos-trash
mint install sindresorhus/macos-trash
Manually

Download the binary and put it in /usr/local/bin.

Usage

trash [--help | -h] [--version | -v] [--interactive | -i] [--empty] <path> […]

Tips

Use it as an rm alias

In your .bashrc or similar:

alias rm='trash'

Works as a drop-in replacement. All rm flags are ignored.

Build

./build

Related

About

Move files and folders to the trash

Topics

Resources

Code of conduct

Contributing

Stars

461 stars

Watchers

11 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages