DELETE
/tenant_clusters/{tenant_cluster_id}/node-pools/{node_pool_id}/
curl --request DELETE \ --url 'https://api.e2enetworks.com/myaccount/api/v1/gpu/tenant_clusters/{tenant_cluster_id}/node-pools/{node_pool_id}/?project_id=<PROJECT_ID>&location=<LOCATION>&apikey=<API_KEY>' \ --header 'Authorization: Bearer <API_TOKEN>'import requests
response = requests.delete( "https://api.e2enetworks.com/myaccount/api/v1/gpu/tenant_clusters/{tenant_cluster_id}/node-pools/{node_pool_id}/", params={"project_id": "<PROJECT_ID>", "location": "<LOCATION>", "apikey": "<API_KEY>"}, headers={"Authorization": "Bearer <API_TOKEN>"},)print(response.json())const url = new URL("https://api.e2enetworks.com/myaccount/api/v1/gpu/tenant_clusters/{tenant_cluster_id}/node-pools/{node_pool_id}/");url.search = new URLSearchParams({ project_id: "<PROJECT_ID>", location: "<LOCATION>", apikey: "<API_KEY>" });
const response = await fetch(url, { method: "DELETE", headers: { "Authorization": "Bearer <API_TOKEN>" },});console.log(await response.json());Deletes a worker node pool and every node in it. The cluster must be ready or worker_joined, and the last worker pool of a cluster cannot be deleted. The pool shows deleting and its hourly billing stops at once; a committed pool’s term keeps running and nothing is refunded.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”tenant_cluster_id
required
integer
Kubernetes cluster ID, as returned by List Kubernetes Clusters.
node_pool_id
required
integer
Worker node pool ID, from the cluster’s node_pools list.
Query Parameters
Section titled “Query Parameters”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
Location
Responses
Section titled “Responses”The pool is queued for deletion.
Media typeapplication/json
object
code
integer
data
object
node_pool_id
integer
name
string
errors
object
message
string
Example
{ "code": 200, "data": { "node_pool_id": 22, "name": "app-workers-2" }, "errors": {}, "message": "Node pool deletion queued successfully"}