Skip to content

devwithkrishna/delete-github-repository

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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