macos-trash
« Back to VersTracker
Description:
Move files and folders to the trash
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  @sindresorhus  |  formulae.brew.sh
Category: System utilities
Tags: cli macos utility file-management deletion
Install: brew install macos-trash
About:
macos-trash is a command-line utility that moves files and folders to the system trash instead of permanently deleting them. This allows users to recover items later using the Finder interface, providing a safety net against accidental deletion. It integrates with macOS's native trash system for a seamless user experience.
Key Features:
  • Moves files to the native macOS trash
  • Preserves the ability to recover deleted items
  • Simple command-line interface
  • Works with files and directories
Use Cases:
  • Safely deleting files from scripts or automation workflows
  • Bulk removal of files while maintaining recovery options
  • Replacing rm commands in terminal workflows for safer deletions
Alternatives:
  • rm – Standard Unix remove command that permanently deletes files without recovery option
  • trash-cli – Cross-platform trash utility with broader Linux support but less macOS integration
Version History
Detected Version Rev Change Commit
Sep 25, 2025 5:50pm 0 VERSION_BUMP ed50e613
Sep 25, 2025 4:11pm 0 VERSION_BUMP 5caf5a51
Sep 16, 2025 2:36am 0 VERSION_BUMP dfdf24d0
Sep 13, 2024 7:48pm 0 VERSION_BUMP 7f95cbda