users

Delete a GPG key for the authenticated user

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

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

delete/user/gpg_keys/{gpg_key_id}

Request

  • Base URL: http://HOSTNAME/api/v3
  • URL: http://HOSTNAME/api/v3/user/gpg_keys/{gpg_key_id}
  • Auth: none declared

Path parameters

gpg_key_idinteger required

The unique identifier of the GPG key.

Response

Response

Changes

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