andreafrancia/trash-cli
Command line interface to the freedesktop.org trashcan. observed · 2026-08-28
Health v2 · maintenance only
77/100
- Activity 99
- Release rhythm 35
- Longevity 100
Flags: no_releases
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: n/a
- age_days: 5411
- days_rel: n/a
- days_push: 11
- n_releases_24m: 0
Adoption not part of the score
4557 stars · 211 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A Python command-line tool implementing the FreeDesktop.org Trash specification, providing commands to trash, list, restore, and permanently remove files using the same trashcan as KDE, GNOME, and XFCE. It records original paths, deletion dates, and permissions so deleted files can be safely recovered.
Use cases
- safely delete files from the terminal instead of rm
- restore accidentally deleted files from the command line
- list trashed files with deletion dates
- empty the trash or purge files older than N days
- script file deletion with recoverability in shell scripts
- remove specific trashed files matching a pattern
When to choose
- you want a recoverable alternative to rm on Linux
- you need CLI trash integration with desktop environments like GNOME or KDE
- you're writing scripts that delete files but want an undo path
- you want to age out trash contents automatically by deletion date
When to avoid
- you need a graphical trash manager
- you're on a platform without FreeDesktop trash support
- you want permanent, immediate deletion without a trashcan
Facets
cli-tool · maturity stable
cli file-system developer-tools developer-tools files cli python trashcan freedesktop file-deletion recycle-bin safe-rm command-line linux
2 sources
- readme: https://github.com/andreafrancia/trash-cli · fetched 2026-08-28 · d52e00176cbc
- registry_pypi: https://pypi.org/pypi/trash-cli/json · fetched 2026-08-29 · 8e2da223ded1
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| andreafrancia/trash-cli | main | 77 |
For agents
markdown · JSON · MCP: product_card(name="andreafrancia/trash-cli")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem