https://github.com/sindresorhus/macos-trash
Move files and folders to the trash
https://github.com/sindresorhus/macos-trash
macos swift-package trash
Last synced: about 1 year ago
JSON representation
Move files and folders to the trash
- Host: GitHub
- URL: https://github.com/sindresorhus/macos-trash
- Owner: sindresorhus
- License: mit
- Created: 2015-01-26T07:38:30.000Z (over 11 years ago)
- Default Branch: main
- Last Pushed: 2025-03-09T05:32:50.000Z (about 1 year ago)
- Last Synced: 2025-05-07T09:33:37.272Z (about 1 year ago)
- Topics: macos, swift-package, trash
- Language: Swift
- Homepage:
- Size: 20.5 KB
- Stars: 389
- Watchers: 12
- Forks: 16
- Open Issues: 5
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
- awesome-terminals - trash - Move files and folders to the trash. (Tools / Swift)
README
# macos-trash
> Move files and folders to the trash
*Requires macOS 10.13 or later.*
Since macOS 14, there is now a built-in `trash` command. The benefit of the binary here is that it has a `--interactive` flag.
## Install
###### [Homebrew](https://brew.sh)
```sh
brew install macos-trash
```
###### [Mint](https://github.com/yonaskolb/Mint)
```sh
mint install sindresorhus/macos-trash
```
###### Manually
[Download](https://github.com/sindresorhus/macos-trash/releases/latest) the binary and put it in `/usr/local/bin`.
## Usage
```sh
trash [--help | -h] [--version | -v] [--interactive | -i] […]
```
## Build
```sh
./build
```
## Related
- [trash](https://github.com/sindresorhus/trash) - Cross-platform Node.js version
- [empty-trash](https://github.com/sindresorhus/empty-trash) - Empty the trash
- [macos-wallpaper](https://github.com/sindresorhus/macos-wallpaper) - Manage the desktop wallpaper
- [do-not-disturb](https://github.com/sindresorhus/do-not-disturb) - Control the macOS `Do Not Disturb` feature
- [More…](https://github.com/search?q=user%3Asindresorhus+language%3Aswift+archived%3Afalse&type=repositories)