{"id":24131776,"url":"https://github.com/jeromewolff/github-organization-repo-bulk-delete","last_synced_at":"2025-08-02T23:08:01.042Z","repository":{"id":271261315,"uuid":"912888350","full_name":"JeromeWolff/github-organization-repo-bulk-delete","owner":"JeromeWolff","description":"PowerShell Script to bulk delete multiple repositories in a organization via Fine-grained Personal Access Token","archived":false,"fork":false,"pushed_at":"2025-01-06T15:56:02.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-01T07:29:59.573Z","etag":null,"topics":["github-token","powershell","powershell-script","powershell7"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JeromeWolff.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2025-01-06T15:46:42.000Z","updated_at":"2025-01-06T15:51:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"823d31e9-23f0-4fbf-b1ea-2b0cfc4892f1","html_url":"https://github.com/JeromeWolff/github-organization-repo-bulk-delete","commit_stats":null,"previous_names":["jeromewolff/github-organization-repo-bulk-delete"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/JeromeWolff/github-organization-repo-bulk-delete","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JeromeWolff%2Fgithub-organization-repo-bulk-delete","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JeromeWolff%2Fgithub-organization-repo-bulk-delete/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JeromeWolff%2Fgithub-organization-repo-bulk-delete/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JeromeWolff%2Fgithub-organization-repo-bulk-delete/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JeromeWolff","download_url":"https://codeload.github.com/JeromeWolff/github-organization-repo-bulk-delete/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JeromeWolff%2Fgithub-organization-repo-bulk-delete/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268470799,"owners_count":24255391,"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-02T02:00:12.353Z","response_time":74,"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":["github-token","powershell","powershell-script","powershell7"],"created_at":"2025-01-11T21:31:06.396Z","updated_at":"2025-08-02T23:08:01.031Z","avatar_url":"https://github.com/JeromeWolff.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Repository Deletion Tool\n\nA PowerShell script to delete multiple GitHub repositories within an organization based on a specific prefix. This tool utilizes a fine-grained personal access token (PAT) for authentication and interacts with the GitHub REST API.\n\n## Features\n\n- Deletes repositories with a specified prefix.\n- Works for repositories within an organization.\n- Supports GitHub's fine-grained access token for secure and scoped authentication.\n- Handles paginated results for organizations with many repositories.\n\n## Prerequisites\n\n1. **GitHub Token**: A fine-grained personal access token with the `delete_repo` permission scoped to the target organization.\n2. **PowerShell**: PowerShell 7 or higher is recommended.\n\n## Usage\n\n### 1. Clone or Download the Script\nSave the script as `Delete-GitHubRepos.ps1`.\n\n### 2. Run the Script\nExecute the script in PowerShell with the following parameters:\n\n```powershell\n.\\Delete-GitHubRepos.ps1 -GitHubToken \"\u003cyour_token\u003e\" -OrganizationName \"\u003cyour_organization\u003e\" -RepoPrefix \"\u003cprefix\u003e\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeromewolff%2Fgithub-organization-repo-bulk-delete","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeromewolff%2Fgithub-organization-repo-bulk-delete","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeromewolff%2Fgithub-organization-repo-bulk-delete/lists"}