← Back to tools

trash-cli

Move files and folders to the trash on Linux, macOS, and Windows

File Management linuxmacoswindows JavaScript MIT

Description

trash-cli moves files and folders to the trash instead of permanently deleting them. It supports Linux (XDG trash), macOS, and Windows, providing a safer alternative to rm.

AI Summary

Cross-platform tool to move files to system trash instead of deleting

Capabilities

  • + Move files to system trash
  • + Support Linux, macOS, Windows
  • + Safer alternative to rm

Use When

  • When you want safe file deletion
  • When files should be recoverable from trash

Avoid When

  • x When permanent deletion is intended

Related Tools

View AGENTS.md for trash-cli