Destroy (permanently delete) a running or stopped instance.
Signature
VastAI.destroy_instance(id: int) -> str
Parameters
ID of the instance to destroy.
Returns
str — Result from the API call.
Example
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
result = client.destroy_instance(id=12345)
print(result)