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.
DELETE
/repos/{owner}/{repo}- Source
github-v3-rest.json- Revision
f5f067c1e6f6- Active snapshot
85e53e3d0d65
Request
Path Parameters
- owner stringrequired
- repo stringrequired
Responses
Response
application/json Basic Error object
Temporary Redirect
documentation_url string
optionalmessage string
optionalstatus string
optionalurl string
optionalapplication/json object
If an organization owner has configured the organization to prevent members from deleting organization-owned repositories, a member will get this response:
documentation_url string
optionalmessage string
optionalapplication/json Basic Error object
Resource not found
documentation_url string
optionalmessage string
optionalstatus string
optionalurl string
optional