Skip to content

Delete Kubernetes Cluster

DELETE
/tenant_clusters/{tenant_cluster_id}/
curl --request DELETE \
--url 'https://api.e2enetworks.com/myaccount/api/v1/gpu/tenant_clusters/{tenant_cluster_id}/?project_id=<PROJECT_ID>&location=<LOCATION>&apikey=<API_KEY>' \
--header 'Authorization: Bearer <API_TOKEN>'

Deletes the cluster: its control plane, every node pool and node, its storage and the volumes on it, and its kubeconfig. The call returns once the deletion has started, and the cluster shows deleting. A cluster can be deleted in any status except deleting, including failed, which is how a cluster that never came up is cleared.

Reserved IPs attached to the cluster go back to the project’s reserved IPs and stay reserved, and charged, until you release them. A committed pool’s term keeps running and nothing is refunded.

tenant_cluster_id
required
integer

Kubernetes cluster ID, as returned by List Kubernetes Clusters.

project_id
required
integer

Project ID

active_iam
integer

Active IAM ID (To access contact person account) Find your Active IAM ID here

location
required
string
Allowed values: Delhi Chennai

Location

The deletion has started.

Media typeapplication/json
object
code
integer
data
object
id
integer
name
string
project_id
integer
region
string
status
string
Allowed values: queued cluster_provisioning worker_joining worker_joined ready failed deleting deleted
errors
object
message
string

Example

{
"code": 200,
"data": {
"id": 103,
"name": "tir-k8s-prod",
"project_id": 18773,
"region": "Delhi",
"status": "queued"
},
"errors": {},
"message": "Tenant cluster deletion started successfully"
}