{"id":13396144,"url":"https://github.com/sindresorhus/trash-cli","last_synced_at":"2025-05-14T18:02:30.670Z","repository":{"id":37390556,"uuid":"44158428","full_name":"sindresorhus/trash-cli","owner":"sindresorhus","description":"Move files and folders to the trash","archived":false,"fork":false,"pushed_at":"2024-07-26T12:24:18.000Z","size":25,"stargazers_count":1349,"open_issues_count":11,"forks_count":38,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-05-07T09:30:30.306Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/sindresorhus.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":".github/security.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"sindresorhus","open_collective":"sindresorhus","buy_me_a_coffee":"sindresorhus","custom":"https://sindresorhus.com/donate"}},"created_at":"2015-10-13T07:06:12.000Z","updated_at":"2025-05-07T07:09:49.000Z","dependencies_parsed_at":"2024-11-05T18:44:51.781Z","dependency_job_id":null,"html_url":"https://github.com/sindresorhus/trash-cli","commit_stats":{"total_commits":38,"total_committers":5,"mean_commits":7.6,"dds":"0.10526315789473684","last_synced_commit":"e4b10775b28ed9378a7abe88341dc5f1f306f31d"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Ftrash-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Ftrash-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Ftrash-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Ftrash-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sindresorhus","download_url":"https://codeload.github.com/sindresorhus/trash-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254198453,"owners_count":22030964,"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":[],"created_at":"2024-07-30T18:00:41.234Z","updated_at":"2025-05-14T18:02:30.313Z","avatar_url":"https://github.com/sindresorhus.png","language":"JavaScript","readme":"# trash-cli\n\n\u003e Move files and folders to the trash\n\nWorks on macOS (10.12+), Linux, and Windows (8+).\n\nIn contrast to [`rm`](http://en.wikipedia.org/wiki/Rm_(Unix)) which is [dangerous](http://docstore.mik.ua/orelly/unix3/upt/ch14_03.htm) and permanently deletes files, this only moves them to the trash, which is much safer and reversible. I would also recommend reading my guide on [safeguarding `rm`](https://github.com/sindresorhus/guides/blob/main/how-not-to-rm-yourself.md#safeguard-rm).\n\nAccepts paths and [glob patterns](https://github.com/sindresorhus/globby#globbing-patterns).\n\n## Install\n\n```sh\nnpm install --global trash-cli\n```\n\n## Usage\n\n```\n$ trash --help\n\n  Usage\n    $ trash \u003cpath|glob\u003e […]\n\n  Examples\n    $ trash unicorn.png rainbow.png\n    $ trash '*.png' '!unicorn.png'\n```\n\n## Tip\n\nAdd `alias rm=trash` to your `.zshrc`/`.bashrc` to reduce typing \u0026 safely trash files: `$ rm unicorn.png`.\n\n## [FAQ](https://github.com/sindresorhus/trash#faq)\n\n## Related\n\n- [trash](https://github.com/sindresorhus/trash) - API for this package\n- [empty-trash-cli](https://github.com/sindresorhus/empty-trash-cli) - Empty the trash\n- [del-cli](https://github.com/sindresorhus/del-cli) - Delete files and folders\n","funding_links":["https://github.com/sponsors/sindresorhus","https://opencollective.com/sindresorhus","https://buymeacoffee.com/sindresorhus","https://sindresorhus.com/donate"],"categories":["Files and Directories","JavaScript","others","Uncategorized","Command Line","\u003ca name=\"rm\"\u003e\u003c/a\u003eFile deletion and trash bin (alternatives to rm)"],"sub_categories":["Deleting, Copying, and Renaming","Uncategorized","CLI Tools"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsindresorhus%2Ftrash-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsindresorhus%2Ftrash-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsindresorhus%2Ftrash-cli/lists"}