gtrash
brew install gtrash
v0.0.6
MIT
Featureful Trash CLI manager: alternative to rm and trash-cli
12
30-day installs · #8209
15
90-day · #10607
126
365-day · #8578
319
★ GitHub stars · updated 1y ago
Build dependencies
GitHub topics
cli
go
rm
trash
trash-cli
trashcan
Links
- https://github.com/umlx5h/gtrash
- GitHub: umlx5h/gtrash
- Brew formula source: Formula/g/gtrash.rb
Raw metadata
{
"aliases": [],
"alternatives": [],
"build_dependencies": [
"go"
],
"categories": [],
"caveats": null,
"conflicts_with": [],
"dependencies": [],
"deprecated": 0,
"deprecation_reason": null,
"desc": "Featureful Trash CLI manager: alternative to rm and trash-cli",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:38:30+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "gtrash",
"github_default_branch": "main",
"github_last_commit_at": "2025-05-22T05:32:14Z",
"github_readme_excerpt": "# gtrash\n\n\n\n`gtrash` is a trash CLI manager that fully complies with the [FreeDesktop.org specification](https://specifications.freedesktop.org/trash-spec/latest/). \nUnlike `rm`, `gtrash` moves files to the system trash can, enabling easy restoration of important files at any time.\n\nIf you usually use `rm` in the shell, `gtrash` can serve as a substitute.\n\nThis tool utilizes the system trash can on Linux, enabling seamless integration with other CLI and desktop applications.\n\nAdditionally, `gtrash` features a modern TUI interface, making it very intuitive to restore any file.\n\nThe interface is made with an awesome [bubbletea](https://github.com/charmbracelet/bubbletea) TUI framework.\n\n## Table of Contents\n- [Features](#features)\n- [Supported OS](#supported-os)\n- [Installation](#installation)\n- [Usage](#usage)\n- [How it works](#how-it-works)\n- [FAQ](#faq)\n- [Tips](#tips)\n- [Configuration](#configuration)\n- [Related projects](#related-projects)\n\n## Features\n\n- Intuitive TUI interface for file restoration\n - Allows incremental search for trashed files, enabling the restoration of multiple files simultaneously.\n- Full compliance with FreeDesktop.org specification\n - Supports directory size caching, enabling fast size-based filtering and pruning.\n- Close compatibility with rm interface\n - Has rm-like mode, You can customize -r, -d behavior\n- Multi subcommands design in a single static binary written in Go\n- Restoration of co-deleted files together\n- Easy integration with other CLI tools, such as fzf\n- Safe and Ergonomic\n - Ensures safety by displaying a list and confirmation prompt whenever a file is permanently deleted.\n\n\n## Supported OS\n\n### Linux\nSupported\n\n### Mac\nSupported\n\nbut Mac\u0027s system trash can is not used\n\n### Windows\nNot supported\n\nIt works perfectly on WSL2 because it is real Linux\n\n## Installation\n\n### From binaries\n\nDownload the binary from [GitHub Releases](https://github.com/umlx5h/gtrash/releases/latest) and place it in ",
"github_repo": "umlx5h/gtrash",
"github_stars": 319,
"github_topics": [
"cli",
"go",
"rm",
"trash",
"trash-cli",
"trashcan"
],
"homepage": "https://github.com/umlx5h/gtrash",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": null,
"installs_30d": 12,
"installs_365d": 126,
"installs_90d": 15,
"keg_only": 0,
"keg_only_reason": null,
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "MIT",
"llm_generated_at": null,
"llm_model": null,
"name": "gtrash",
"oldnames": [],
"one_liner": null,
"optional_dependencies": [],
"rank_30d": 8209,
"rank_365d": 8578,
"rank_90d": 10607,
"raw_hash": "2e4a3fe1e5ca760e",
"recommended_dependencies": [],
"revision": 0,
"ruby_source_path": "Formula/g/gtrash.rb",
"tap": "homebrew/core",
"test_dependencies": [],
"uses_from_macos": [],
"version_head": "HEAD",
"version_stable": "0.0.6",
"versioned_formulae": [],
"why_use_this": null
}