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