An open API service indexing awesome lists of open source software.

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

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 ```