{"id":20829602,"url":"https://github.com/celsiusnarhwal/rm-trash","last_synced_at":"2026-01-11T05:43:21.434Z","repository":{"id":136444524,"uuid":"581705514","full_name":"celsiusnarhwal/rm-trash","owner":"celsiusnarhwal","description":"🗑 Safe(r) deletion of files from the macOS command line","archived":false,"fork":false,"pushed_at":"2022-12-29T03:05:05.000Z","size":30,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T04:17:11.411Z","etag":null,"topics":["cli","file-management","rm","rmdir","trash"],"latest_commit_sha":null,"homepage":"","language":"Python","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/celsiusnarhwal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-12-24T02:39:11.000Z","updated_at":"2024-08-06T16:41:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"45456f10-be49-445a-a725-d09734382d84","html_url":"https://github.com/celsiusnarhwal/rm-trash","commit_stats":{"total_commits":17,"total_committers":1,"mean_commits":17.0,"dds":0.0,"last_synced_commit":"f7fd88832771da7877225d50b2b39d3095680f95"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/celsiusnarhwal%2Frm-trash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/celsiusnarhwal%2Frm-trash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/celsiusnarhwal%2Frm-trash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/celsiusnarhwal%2Frm-trash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/celsiusnarhwal","download_url":"https://codeload.github.com/celsiusnarhwal/rm-trash/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246558119,"owners_count":20796696,"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","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","file-management","rm","rmdir","trash"],"created_at":"2024-11-17T23:21:13.677Z","updated_at":"2026-01-11T05:43:21.411Z","avatar_url":"https://github.com/celsiusnarhwal.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rm-trash\n\n[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/celsiusnarhwal/rm-trash?logo=github\u0026color=orange\u0026logoColor=white\u0026style=for-the-badge)](https://github.com/celsiusnarhwal/rm-trash/releases)\n\nrm-trash is a macOS command-line utility that moves files and directories to the Trash.\nUnlike [similar](https://github.com/ali-rantakari/trash) [tools](https://github.com/sindresorhus/macos-trash),\nrm-trash intends to be a complete alternative to `rm` and `rmdir`, to the extent that you could use aliases\nto have rm-trash replace them both.\n\nrm-trash works by communicating with Finder\nthrough [AppleScript](https://developer.apple.com/library/archive/documentation/AppleScript/Conceptual/AppleScriptLangGuide/introduction/ASLR_intro.html),\nso it's no different from moving files to the Trash\nfrom within Finder itself.\n\n## Installation\n\nInstall rm-trash with [Homebrew](https://brew.sh) via\nthe [Houkago Tea Tap](https://github.com/celsiusnarhwal/homebrew-htt).\n\n```bash\nbrew tap celsiusnarhwal/htt\nbrew install rm-trash\n```\n\n## Usage\n\nInvoke rm-trash with the `trash` command, which will become available after installation.\n\n```bash\ntrash --help\n```\n\nwill tell you everything you need to know.\n\n## Replacing `rm` and `rmdir`\n\nIf you wish, you can replace `rm` and `rmdir` with aliases to `trash`.\n\n```bash\nalias rm=\"trash trash\"\nalias rmdir=\"trash dir\"\n```\n\n`trash` supports all options of both commands. Run `trash --help` for details.\n\n## Limitations\n\nrm-trash refuses to as root when [System Integrity Protection](https://support.apple.com/en-us/HT204899) (SIP) is\ndisabled.\nYou can still run rm-trash as a non-root user when SIP is disabled, or as any user when SIP is enabled. This limitation\nis intended to prevent you from accidentally trashing files and directories that are typically protected by SIP.\n\nIf you must remove files as root while SIP is disabled, you can always fall back to `rm`.\n\n## License\n\nrm-trash is licensed under the [MIT License](LICENSE.md).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcelsiusnarhwal%2Frm-trash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcelsiusnarhwal%2Frm-trash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcelsiusnarhwal%2Frm-trash/lists"}