Delete Kubernetes Cluster
DELETE https://infrahub-api.nexgencloud.com/v1/core/clusters/{id}
Permanently deletes a Kubernetes cluster. Supply the cluster ID in the path to delete the specified cluster.
Path parameters
id integer
Required
The unique identifier of the cluster to be deleted.
Attributes
status boolean
Indicates the result of the request to delete the cluster. true
signifies success, while false
indicates an error.
message string
A description of the status of the request to delete the cluster.
Example request
curl -X DELETE "https://infrahub-api.nexgencloud.com/v1/core/clusters/{id}" \
-H "accept: application/json"\
-H "api_key: YOUR API KEY"
Response
{
"status": true,
"message": "Cluster example-cluster is being deleted"
}
Returns
Returns the status of the request to delete a cluster. A true
status indicates successful deletion, otherwise an error has occurred.