osx-trash
« Back to VersTracker
Description:
Allows trashing of files instead of tempting fate with rm
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: System utilities
Tags: macos cli trash utility file-management
Install: brew install osx-trash
About:
OsxTrash provides a command-line interface to move files and directories to the macOS Trash (Recycle Bin) instead of permanently deleting them with rm. This allows for safe file removal, enabling recovery if a file is deleted by mistake. It integrates with the native Finder trash system, ensuring trashed items appear in the Trash and can be restored via the GUI.
Key Features:
  • Moves files to the native macOS Trash instead of permanent deletion
  • Provides a simple 'trash' command as a safer alternative to 'rm'
  • Integrates with Finder for easy visual recovery
  • Supports recursive deletion of directories
Use Cases:
  • Safely deleting files from the command line without risking permanent data loss
  • Cleaning up temporary or large files while keeping them recoverable for a short period
  • Scripting file removal operations that need a safety net for accidental deletions
Alternatives:
  • rmtrash – Similar functionality; rmtrash is another popular Homebrew formula for this purpose.
  • rm -rf – Standard Unix removal; permanent and offers no recovery option, making OsxTrash a safer alternative.
Version History
Detected Version Rev Change Commit