Sample - GitHub REST API
DELETE/repos/{owner}/{repo}/keys/{key_id}

Delete a deploy key

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

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

3 parameters
ownerstringrequired
The account owner of the repository. The name is not case sensitive.
repostringrequired
The name of the repository without the `.git` extension. The name is not case sensitive.
key_idintegerrequired
The unique identifier of the key.

1 status code
204Response