> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vast.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# VastAI.delete_template

Delete a template by template ID or hash ID.

## Signature

```python theme={null}
VastAI.delete_template(template_id: Optional[int] = None, hash_id: Optional[str] = None) -> str
```

## Parameters

<ParamField path="template_id" type="Optional[int]">
  template\_id
</ParamField>

<ParamField path="hash_id" type="Optional[str]">
  hash\_id
</ParamField>

## Returns

`str`, Result from the API call.

## Example

```python theme={null}
from vastai import VastAI

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