If an organization owner has configured the organization to prevent members from deleting organization-owned
repositories, you will get a 403 Forbidden response.
OAuth app tokens and personal access tokens (classic) need the delete_repo scope to use this endpoint.
If an organization owner has configured the organization to prevent members from deleting organization-owned repositories, a member will get this response:
Media typeapplication/json
object
message
string
documentation_url
string
Examples
Exampledefault
{
"message": "Organization members cannot delete repositories.",