Delete a 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.
Parameters
Example Response
Status: 403
{
"message": "Organization members cannot delete repositories.",
"documentation_url": "https://docs.github.com/rest/reference/repos#delete-a-repository"
}
See documentation on GitHub developer guides