octokit.rest

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

string The token will be passed in the authorization header.

string

string

Request

DELETE https://api.github.com/repos//
authorization: bearer undefined
accept: application/vnd.github.v3+json
user-agent: octokit.rest
content-length: 0


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