OpenapiCompute
Delete pools
Removes a node pool from one of the caller org's clusters.
DELETE /v1/compute/clusters/{clusterId}/pools/{poolId}
| Address | https://api.hanzo.ai/v1/compute/clusters/{clusterId}/pools/{poolId} |
| Method | DELETE |
| Operation | deleteNodePool |
| Auth | Authorization: Bearer $HANZO_API_KEY |
Removes a node pool from one of the caller org's clusters. The owner scopes the delete to the caller's tenant; provider+clusterId drive the provider-side removal. Answers 204.
Request
3 fields.
| Field | In | Type | Required | Description |
|---|---|---|---|---|
clusterId | path | string | yes | ClusterID and PoolID address the pool, from the URL path. |
poolId | path | string | yes | |
provider | query | string | — | Provider is the cloud the cluster lives on, from ?provider=. |
Response
| Status | Body | Meaning |
|---|---|---|
204 | — | no content |
default | problem-details | refused |
Failure carries the platform error shape — see Errors.
Examples
hanzo compute clusters pools rm <clusterId> <poolId>import { Configuration, ComputeApi } from 'hanzoai';
const api = new ComputeApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.deleteNodePool({ clusterId: 'clusterId', poolId: 'poolId' });from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import ComputeApi
client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = ComputeApi(client).delete_node_pool(cluster_id='clusterId', pool_id='poolId')cfg := hanzoai.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := hanzoai.NewAPIClient(cfg)
resp, _, err := client.ComputeAPI.DeleteNodePool(context.Background()).Execute()
if err != nil {
return err
}use hanzo_client::apis::{configuration::Configuration, compute_api};
let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();
let result = compute_api::delete_node_pool(&cfg, Default::default()).await?;import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.ComputeApi;
ApiClient client = new ApiClient();
client.setBearerToken(System.getenv("HANZO_API_KEY"));
var result = new ComputeApi(client).deleteNodePool();curl -X DELETE https://api.hanzo.ai/v1/compute/clusters/<clusterId>/pools/<poolId> \
-H "Authorization: Bearer $HANZO_API_KEY"Tool visor, op deleteNodePool — POST the JSON-RPC envelope to https://api.hanzo.ai/v1/mcp.
curl -X POST https://api.hanzo.ai/v1/mcp \
-H "Authorization: Bearer $HANZO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "visor",
"arguments": {
"op": "deleteNodePool",
"input": {
"clusterId": "<clusterId>",
"poolId": "<poolId>"
}
}
}
}'How is this guide?