{"id":13698285,"url":"https://github.com/octoherd/script-delete-repository","last_synced_at":"2025-05-04T03:31:11.401Z","repository":{"id":43191325,"uuid":"359547307","full_name":"octoherd/script-delete-repository","owner":"octoherd","description":"An Octoherd script to delete repositories","archived":false,"fork":false,"pushed_at":"2025-04-15T15:30:55.000Z","size":138,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-15T16:43:02.070Z","etag":null,"topics":["octoherd-script"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/octoherd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","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-04-19T17:42:28.000Z","updated_at":"2025-04-15T15:30:58.000Z","dependencies_parsed_at":"2024-12-27T17:37:44.942Z","dependency_job_id":null,"html_url":"https://github.com/octoherd/script-delete-repository","commit_stats":{"total_commits":20,"total_committers":3,"mean_commits":6.666666666666667,"dds":0.5,"last_synced_commit":"4ea57806a547784ea36c42b08993362817bd6eb3"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octoherd%2Fscript-delete-repository","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octoherd%2Fscript-delete-repository/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octoherd%2Fscript-delete-repository/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octoherd%2Fscript-delete-repository/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/octoherd","download_url":"https://codeload.github.com/octoherd/script-delete-repository/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252283594,"owners_count":21723505,"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":["octoherd-script"],"created_at":"2024-08-02T19:00:43.077Z","updated_at":"2025-05-04T03:31:11.084Z","avatar_url":"https://github.com/octoherd.png","language":"JavaScript","funding_links":[],"categories":["Scripts"],"sub_categories":[],"readme":"# script-delete-repository\n\n\u003e An Octoherd script to delete repositories\n\n[![@latest](https://img.shields.io/npm/v/@octoherd/script-delete-repository.svg)](https://www.npmjs.com/package/@octoherd/script-delete-repository)\n[![Build Status](https://github.com/octoherd/script-delete-repository/workflows/Test/badge.svg)](https://github.com/octoherd/script-delete-repository/actions?query=workflow%3ATest+branch%3Amain)\n\n## Usage\n\nMinimal usage (You have to set a token because the built-in OAuth flow creates a token with the `repo` scope, but this script requires the `delete_repo` scope. You can create such a token at https://github.com/settings/tokens/new?scopes=delete_repo)\n\n```js\nnpx @octoherd/script-delete-repository \\\n  -T ghp_0123456789abcdefghjklmnopqrstuvwxyzA \\\n```\n\nPass all options as CLI flags to avoid user prompts\n\n```js\nnpx @octoherd/script-delete-repository \\\n  -T ghp_0123456789abcdefghjklmnopqrstuvwxyzA \\\n  -R \"octoherd/*\"\n```\n\n## Options\n\n| option                   | type             | description                                                                                                                                                                                                                                 |\n| ------------------------ | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `--octoherd-token`, `-T` | string           | A personal access token ([create](https://github.com/settings/tokens/new?scopes=repo)). Script will create one if option is not set                                                                                                         |\n| `--octoherd-repos`, `-R` | array of strings | One or multiple space-separated repositories in the form of `repo-owner/repo-name`. `repo-owner/*` will find all repositories for one owner. `*` will find all repositories the user has access to. Will prompt for repositories if not set |\n| `--octoherd-bypass-confirms` | boolean | Bypass prompts to confirm mutating requests |\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md)\n\n## About Octoherd\n\n[@octoherd](https://github.com/octoherd/) is project to help you keep your GitHub repositories in line.\n\n## License\n\n[ISC](LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foctoherd%2Fscript-delete-repository","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foctoherd%2Fscript-delete-repository","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foctoherd%2Fscript-delete-repository/lists"}