cURL
curl --request DELETE \ --url https://gogs.example.com/api/v1/user/keys/{id} \ --header 'Authorization: <api-key>'
Personal access token. Use format: token {YOUR_ACCESS_TOKEN}
Key ID
The resource has been successfully deleted.