DELETE
/dashboard/account/ssh-keys/{id} Delete SSH key
Deletes an SSH key.
Parameters
| Name | Type | In | Description |
|---|---|---|---|
id* | integer | path | The SSH key ID |
Response
200
404
successbooleanRequest
curl -X DELETE "https://api.royalehosting.net/dashboard/account/ssh-keys/{id}" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "x-organization-id: YOUR_ORG_ID"Request
const response = await fetch("https://api.royalehosting.net/dashboard/account/ssh-keys/{id}", {
method: "DELETE",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"x-organization-id": "YOUR_ORG_ID",
},
});
const data = await response.json();Request
import requests
response = requests.delete(
"https://api.royalehosting.net/dashboard/account/ssh-keys/{id}",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"x-organization-id": "YOUR_ORG_ID",
}
)
print(response.json())Response
{
"success": true
}