users

Delete a public SSH key for the authenticated user

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.

delete/user/keys/{key_id}

Request

  • Base URL: https://api.github.com
  • URL: https://api.github.com/user/keys/{key_id}
  • Auth: none declared

Path parameters

key_idinteger required

The unique identifier of the key.

Response

Response

Changes

No recorded changes to this operation across all 83 revisions of this API.