Skip to main content
Delete a cluster.

Signature

VastAI.delete_cluster(cluster_id: int) -> str

Parameters

cluster_id
int
required
cluster_id

Returns

str — Result from the API call.

Example

from vastai import VastAI

client = VastAI(api_key="YOUR_API_KEY")
result = client.delete_cluster(cluster_id=12345)
print(result)