Skip to main content
DELETE
/
user
/
keys
/
{id}
Delete a public key
curl --request DELETE \
  --url https://gogs.example.com/api/v1/user/keys/{id} \
  --header 'Authorization: <api-key>'

Authorizations

Authorization
string
header
required

Personal access token. Use format: token {YOUR_ACCESS_TOKEN}

Path Parameters

id
string
required

Key ID

Response

The resource has been successfully deleted.