Search + K

Command Palette

Search for a command to run...

Sign In

Delete a public SSH key for the authenticated user

DELETE /user/keys/{key_id}
Copy endpoint
https://api.github.com

Removes a public SSH key from the authenticated user's GitHub account.

OAuth app tokens and personal access tokens (classic) need the admin:public_key scope to use this endpoint.

Parameters

path Path Parameters

Name Type
key_id required

The unique identifier of the key.

number

Responses

204

Response

unknown

Redirects

304

Not modified

unknown

Client Errors

401 application/json

Requires authentication

interface BasicError {
message?: string;
documentation_url?: string;
url?: string;
status?: string;
}
403 application/json

Forbidden

interface BasicError {
message?: string;
documentation_url?: string;
url?: string;
status?: string;
}
404 application/json

Resource not found

interface BasicError {
message?: string;
documentation_url?: string;
url?: string;
status?: string;
}