cURL
curl --request DELETE \ --url https://console.vast.ai/api/v0/template/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "template_id": 334548 } '
{ "success": true }
Deletes an existing template.
Pass the template’s numeric id (not hash_id) in the request body.
id
hash_id
For detailed usage, see Creating and Using Templates with API.
CLI Usage: vastai delete template --template-id <id>
vastai delete template --template-id <id>
API key must be provided in the Authorization header
Numeric ID of the template to delete (not hash_id)
Template deleted successfully
true