macOS
brew install macos-trashlocal Homebrew formula metadata
sudo port install macos-trashMacPorts ports tree · sysutils/macos-trash/Portfile · source: api.github.com
brew
Move files and folders to the trash. Version 3.0.0 via Homebrew; verified from local package data.
install
brew install macos-trashlocal Homebrew formula metadata
sudo port install macos-trashMacPorts ports tree · sysutils/macos-trash/Portfile · source: api.github.com
overview
Move files and folders to the trash
history
macos-trash is a Swift command-line tool that moves files and folders to the macOS Trash instead of deleting them directly.
The official repository was created in January 2015. The current README describes a macOS 13-or-later utility and notes that, although macOS 15 added a built-in `trash` command, this package still provides an interactive flag and fixes Put Back behavior.
The README documents installation through Homebrew, Mint, and manual binary download, while the batch input records Homebrew and MacPorts packaging. Repository metadata captured during this run showed hundreds of GitHub stars, reflecting steady interest in safer command-line deletion on macOS.
The documented CLI shape is `trash [--help | -h] [--version | -v] [--interactive | -i] <path> ...`. The README also suggests aliasing `rm` to `trash` for users who want a safer default in their shell.
macos-trash fills the long-standing gap between Unix `rm` and Finder's Trash. For package users, it is the kind of small native CLI that makes scripts safer while preserving macOS-specific behavior such as recoverable trash items.
security posture
No matching local secret-handling manifest was found for macos-trash. Nucleus package metadata is still published here so future coverage has a stable package URL.
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
trash | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/sindresorhus/macos-trash
install metadata
| Package key | brew:macos-trash |
|---|---|
| Version | 3.0.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/macos-trash |
| Homepage | https://github.com/sindresorhus/macos-trash |
| Repository | https://github.com/sindresorhus/macos-trash |
| Upstream docs | https://github.com/sindresorhus/macos-trash#readme |
| License | MIT |
| Source archive | https://github.com/sindresorhus/macos-trash/archive/refs/tags/v3.0.0.tar.gz |
| Uses from macOS | swift |
| Bottle | available (on arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | macos-trash |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Conflicts With |
|
| Requirements |
|
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | yes |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
macos-trash
sudo port install macos-trashtrash
sudo port install trashsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.