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.
brew install macos-trash
mint install sindresorhus/macos-trash
Download the binary and put it in /usr/local/bin
.
trash [--help | -h] [--version | -v] [--interactive | -i] <path> […]
./build
- trash - Cross-platform Node.js version
- empty-trash - Empty the trash
- macos-wallpaper - Manage the desktop wallpaper
- do-not-disturb - Control the macOS
Do Not Disturb
feature - More…