Delete

•

Safely moves files and directories to macOS Trash, preventing permanent deletion.

This command-line tool offers a secure and reversible alternative to standard deletion commands like `rm` and `rmdir` on macOS. It meticulously moves specified files, directories, and symlinks directly to the user's `$HOME/.Trash` directory. Designed to prevent accidental data loss, it intelligently handles name collisions by appending timestamp suffixes and proactively blocks attempts to trash critical system paths or the Trash directory itself. It provides both a direct CLI interface and seamless integration as an MCP server tool.

주요 기능

01Offers both CLI and MCP server tool interfaces
02Moves files, directories, and symlinks to macOS Trash
03Handles name collisions by appending a timestamp suffix
040 GitHub stars
05Refuses to trash the $HOME/.Trash directory itself
06Blocks trashing of critical system paths like /System or /usr

사용 사례

01Managing file deletion on macOS via the command line with an undo option
02Integrating secure trash functionality into scripts and automated workflows
03Replacing `rm` and `rmdir` for safer file and directory deletion on macOS