Deprovision a Hetzner cluster
import requests
url = "https://platform.ankra.app/api/v1/clusters/hetzner/{cluster_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/clusters/hetzner/{cluster_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://platform.ankra.app/api/v1/clusters/hetzner/{cluster_id} \
--header 'Authorization: Bearer <token>'{
"cluster_id": "<string>",
"operation_id": "<string>",
"success": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Hetzner Clusters
Deprovision a Hetzner cluster
DELETE
/
api
/
v1
/
clusters
/
hetzner
/
{cluster_id}
Deprovision a Hetzner cluster
import requests
url = "https://platform.ankra.app/api/v1/clusters/hetzner/{cluster_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/clusters/hetzner/{cluster_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://platform.ankra.app/api/v1/clusters/hetzner/{cluster_id} \
--header 'Authorization: Bearer <token>'{
"cluster_id": "<string>",
"operation_id": "<string>",
"success": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Query Parameters
Set to 'true' to force deprovision without waiting for the cluster agent. Use only when the cluster agent is permanently offline; cloud resources may leak if Vault or the agent cannot be reached during teardown.