Deletes a specified SSH key by including the ID of the SSH key in the endpoint path. To retrieve your SSH key IDs, see the List SSH Keys API.
DELETE {API_URL}/ssh-keys/{id}
DELETE
{API_URL}/ssh-keys/{id}
id
Required
int
The unique identifier of the SSH key to be deleted
dict
Empty data object
data
string
Indicates the result of the request to delete a SSH key. success signifies success, while failed indicates an error.
success
failed
A description of the status of the request.
Last updated 1 year ago
curl -X DELETE '{API_URL}/ssh-keys/5' \ -H 'Authorization: Bearer {TOKEN/KEY}'
{ "data": {}, "message": "SSH key deleted successfully", "status": "success" }