provider repos DELETE /repos/{owner}/{repo}/keys/{key_id}
@utdk/github /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.
owner path required
The account owner of the repository. The name is not case sensitive.
string
repo path required
The name of the repository without the `.git` extension. The name is not case sensitive.
string
key_id path required
The unique identifier of the key.
integer

Try it

Authentication
Configure credentials for GitHub v3 REST API
repos.deleteDeployKey
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.

Parameters

required

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

required

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

required

The unique identifier of the key.

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import github from '@utdk/github';

await github.repos.deleteDeployKey()