{"id":23164745,"url":"https://github.com/TBXark/rmtrash","last_synced_at":"2025-08-18T04:32:36.058Z","repository":{"id":77774112,"uuid":"427011417","full_name":"TBXark/rmtrash","owner":"TBXark","description":"rmtrash is a small utility that will move the file to macOS's Trash rather than obliterating the file (as rm does).","archived":false,"fork":false,"pushed_at":"2025-02-06T02:39:54.000Z","size":563,"stargazers_count":88,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-29T03:53:58.597Z","etag":null,"topics":["cli","macos","swift","trash"],"latest_commit_sha":null,"homepage":"https://formulae.brew.sh/formula/rmtrash","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TBXark.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-11-11T13:29:25.000Z","updated_at":"2025-06-20T14:36:46.000Z","dependencies_parsed_at":"2024-12-03T16:27:34.121Z","dependency_job_id":"474335c1-bd49-4a8b-93d7-d1a6d1b93843","html_url":"https://github.com/TBXark/rmtrash","commit_stats":null,"previous_names":["tbxark-arc/rmtrash"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/TBXark/rmtrash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TBXark%2Frmtrash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TBXark%2Frmtrash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TBXark%2Frmtrash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TBXark%2Frmtrash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TBXark","download_url":"https://codeload.github.com/TBXark/rmtrash/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TBXark%2Frmtrash/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270945169,"owners_count":24672873,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","macos","swift","trash"],"created_at":"2024-12-18T01:01:27.981Z","updated_at":"2025-08-18T04:32:36.039Z","avatar_url":"https://github.com/TBXark.png","language":"Swift","readme":"# rmtrash\n\n**rmtrash** is a small utility that will move the file to macOS's Trash rather than obliterating the file (as rm does).\n\n\u003cdetails\u003e\n\u003csummary\u003eClick to see the preview\u003c/summary\u003e\n\u003cimg style=\"max-width: 600px;\" alt=\"image\" src=\"preview.png\"\u003e\n\u003c/details\u003e\n\n\n## Install\n\n###### [Homebrew](https://brew.sh)\n\n```sh\nbrew install rmtrash\n```\n\n###### [Mint](https://github.com/yonaskolb/Mint)\n\n```sh\nmint install tbxark/rmtrash\n```\n\n###### Manually\n\n[Download](https://github.com/TBXark/rmtrash/releases/latest) the binary and put it in `/usr/local/bin`.\n\n\n## Usage\n\n### Syntax\n\n```\nrmtrash [-f | --force] {[-i | --interactive[=always]] | [-I | --interactive=once] |\n   [--interactive=never]} [--one-file-system | -x] [--no-preserve-root |\n   --preserve-root] [-r | -R | --recursive] [-d | --dir] [-v | --verbose] \n   FILE...\n\nrmtrash --help\n\nrmtrash --version\n```\n\n### Options\n\n| Options                         | Description                                                  |\n| :------------------------------ | :----------------------------------------------------------- |\n| **-f**, **--force**             | Ignore nonexistant files, and never prompt before removing.  |\n| **-i**                          | Prompt before every removal.                                 |\n| **-I**                          | Prompt once before removing more than three files, or when removing recursively. This option is less intrusive than **-i**, but still gives protection against most mistakes. |\n| **--interactive**[**=***WHEN*]  | Prompt according to *WHEN*: **never**, **once** (**-I**), or **always** (**-i**). If *WHEN* is not specified, then never prompt. |\n| **--one-file-system**, **-x**   | When removing a hierarchy recursively, skip any directory that is on a file system different from that of the corresponding command line argument |\n| **--no-preserve-root**          | Do not treat \"**/**\" (the root directory) in any special way. |\n| **--preserve-root**             | Do not remove \"**/**\" (the root directory), which is the default behavior. |\n| **-r**, **-R**, **--recursive** | Remove directories and their contents recursively.           |\n| **-d**, **--dir**               | Remove empty directories. This option permits you to remove a directory without specifying **-r**/**-R**/**--recursive**, provided that the directory is empty. In other words, **rmtrash -d** is equivalent to using **rmdir**. |\n| **-v**, **--verbose**           | Verbose mode; explain at all times what is being done.       |\n| **--help**                      | Display a help message, and exit.                            |\n| **--version**                   | Display version information, and exit.                       |\n\n### Usage notes\n\nIf the **-I**/**--interactive=once** option is given, and there are more than three files or the **-r**/**-R**/**--recursive** options are specified, **rm** prompts before deleting anything. If the user does not respond **yes**/**y**/**Y** to the prompt, the entire command is aborted.\n\n### Removing directories\n\nBy default, rm does not remove directories. If the -r/-R/--recursive option is specified, however, rm removes any matching directories and their contents.\n\nIf the specified directory is empty, it may be removed with the -d/--dir option, instead.\n\n### Environment\n\n- **RMTRASH_INTERACTIVE_MODE** \n  If set, it will be used as the default value for the **--interactive** option.\n\n### Alias Recommended \n\nAlso, you can add the following aliases to your shell profile:\n\n```shell\nalias del=\"rmtrash\"\nalias trash=\"rmtrash\"\nalias rm=\"echo Use 'del', or the full path i.e. '/bin/rm'\"\n```\n\n\n## Known issues\n\n- **rm** can't delete the current executable directory, but **rmtrash** can, but I don't think that's a bug, it's a feature.\n\n\n## License\n**rmtrash** is released under the MIT license. [See LICENSE](LICENSE) for details.\n","funding_links":[],"categories":["Swift"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTBXark%2Frmtrash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTBXark%2Frmtrash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTBXark%2Frmtrash/lists"}