Skip to content

Delete a key from a repository

DELETE
/repos/{owner}/{repo}/keys/{id}
owner
required
string

Owner of the repo

repo
required
string

Name of the repo

id
required
integer format: int64

Id of the key to delete

APIEmpty is an empty response

APIForbiddenError is a forbidden error response

object
message
string
url
string
Example generated
{
"message": "example",
"url": "example"
}

APINotFound is a not found error response

object
errors
Array<string>
message
string
url
string
Example generated
{
"errors": [
"example"
],
"message": "example",
"url": "example"
}