sindresorhus/trash-cli
Move files and folders to the trash observed · 2026-08-28
Health v2 · maintenance only
73/100
- Activity 65
- Release rhythm 68
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 6
- age_days: 3977
- days_rel: 212
- days_push: 212
- n_releases_24m: 4
Adoption not part of the score
1412 stars · 39 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Node.js command-line tool that moves files and folders to the system trash instead of permanently deleting them, supporting paths and glob patterns. It works on macOS, Linux, and Windows and can be aliased over rm for safer deletion.
Use cases
- safely delete files from the command line
- replace rm with a reversible trash command
- trash files matching glob patterns
- recover accidentally deleted files from the trash
- move folders to the recycle bin on Windows
When to choose
- you want reversible, safer deletion instead of permanent rm
- you need cross-platform trash support from the terminal
- you want to delete files by glob pattern safely
When to avoid
- you need to permanently free disk space immediately
- you are in a headless environment without a trash system
- you need programmatic API usage rather than a CLI
Facets
cli-tool · maturity active
cli file-system developer-tools files windows cli trash safe-delete file-management glob-patterns rm-alternative command-line macos linux nodejs
2 sources
- readme: https://github.com/sindresorhus/trash-cli · fetched 2026-08-28 · e56fdb1b34ea
- registry_npm: https://registry.npmjs.org/trash-cli · fetched 2026-08-29 · 2b01275d3f49
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| sindresorhus/trash-cli | main | 73 |
For agents
markdown · JSON · MCP: product_card(name="sindresorhus/trash-cli")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem