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}
| Parameters | Requirements | Type | Description |
|---|---|---|---|
| id | Required | int |
The unique identifier of the SSH key to be deleted |
Empty data object
Indicates the result of the request to delete a SSH key. success signifies success, while failed indicates an error.
A description of the status of the request.
curl -X DELETE '{API_URL}/ssh-keys/5' \
-H 'Authorization: Bearer {TOKEN/KEY}'{
"data": {},
"message": "SSH key deleted successfully",
"status": "success"
}