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

# Delete Template

> Delete a mutable template

Deletes a template you own and can mutate in current scope.

## Path Parameters

<ParamField path="templateId" type="string" required>
  Template UUID.
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl --request DELETE \
    --url https://www.genviral.io/api/partner/v1/templates/aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa \
    --header 'Authorization: Bearer <token>'
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "ok": true,
    "code": 200,
    "message": "Template deleted",
    "data": {
      "id": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
      "deleted": true
    }
  }
  ```
</ResponseExample>

## Error Responses

* `400 missing_template_id` - path param missing
* `404 not_found` - template not found in readable scope
* `403 forbidden_template` - template exists but mutation is not allowed in current scope
* `401` - authentication failed (missing/invalid/revoked token)
* `402 subscription_required` - active Creator/Professional/Business plan required
* `403 tier_not_allowed` - Scheduler tier cannot use Partner API
* `500 template_delete_failed` - unexpected delete failure
