← Back to tools
View AGENTS.md for rm-trash
rm-trash
Safe rm replacement that moves files to XDG trash instead of deleting
Description
rm-trash is meant to be used in place of rm in Linux, supporting all its arguments. Instead of permanently deleting files, it moves them to the XDG trash, allowing you to restore accidentally deleted files.
AI Summary
Safe rm replacement that moves files to trash instead of permanent deletion
Capabilities
- + Move files to XDG trash instead of deleting
- + Support all standard rm arguments
- + Restore files from trash
- + Drop-in rm replacement
Use When
- → You want a safety net against accidental file deletion
- → You want rm behavior but with trash support
Avoid When
- x You need permanent file deletion
- x You are not on Linux