Skip to content

Delete a deploy key

DELETE
/repos/{owner}/{repo}/keys/{key_id}

Deploy keys are immutable. If you need to update a key, remove the key and create a new one instead.

API method documentation

owner
required
string

The account owner of the repository. The name is not case sensitive.

repo
required
string

The name of the repository without the .git extension. The name is not case sensitive.

key_id
required
integer

The unique identifier of the key.

Response