Skip to main content
Delete a template by template ID or hash ID.

Signature

VastAI.delete_template(template_id: Optional[int] = None, hash_id: Optional[str] = None) -> str

Parameters

template_id
Optional[int]
template_id
hash_id
Optional[str]
hash_id

Returns

str — Result from the API call.

Example

from vastai import VastAI

client = VastAI(api_key="YOUR_API_KEY")
result = client.delete_template()
print(result)