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

# Delete Template

> Delete a template

<ParamField path="id" type="string" required>
  Template ID to delete.
</ParamField>

<Warning>
  This action is irreversible. Built-in templates cannot be deleted.
</Warning>

<Note>
  Deleting a template does not affect existing workspaces created from it.
</Note>

<RequestExample>
  ```bash cURL theme={null}
  curl -X DELETE https://agentgate.mynewapi.com/v1/templates/our-api-template \
    -H "Authorization: Bearer YOUR_API_KEY"
  ```
</RequestExample>

<ResponseExample>
  ```json 204 theme={null}
  // No content
  ```

  ```json 400 theme={null}
  {
    "error": {
      "code": "INVALID_REQUEST",
      "message": "Cannot delete built-in template"
    }
  }
  ```
</ResponseExample>
