https://github.com/devwithkrishna/delete-github-repository
delete-github-repository using automation
https://github.com/devwithkrishna/delete-github-repository
bash-script github github-workflow
Last synced: 10 months ago
JSON representation
delete-github-repository using automation
- Host: GitHub
- URL: https://github.com/devwithkrishna/delete-github-repository
- Owner: devwithkrishna
- License: mit
- Created: 2023-12-27T10:10:36.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-04T06:08:08.000Z (almost 2 years ago)
- Last Synced: 2025-01-16T00:55:51.273Z (11 months ago)
- Topics: bash-script, github, github-workflow
- Language: Shell
- Homepage: https://github.com/devwithkrishna/delete-github-repository
- Size: 4.88 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# delete-github-repository
```
Deleting a repository requires admin access. If OAuth is used, the delete_repo scope is required.
If an organization owner has configured the organization to prevent members from deleting organization-owned repositories, you will get a 403 Forbidden response.
```
reference: [delete-github-repository](https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28#delete-a-repository)
## How code works
* requires owner name / organization name
* requires repository names
* Multiple repo names can be provided as a comma seperated values.
* * Eg: testrepo,testrepo1,testrepo2
```
These parameters are received from the github workflow UI. These are then passed to restAPI in bash script
```
* The credential used is ``` FINE GRAINED PERSONAL ACCESS TOKEN ```