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

# Delete a template

> Permanently delete a template. Existing PDFs generated from this template are unaffected.

## Phase

**Phase 1 (Launch)**

## Path parameters

<ParamField path="id" type="string" required>
  Template ID, e.g., `tpl_abc123`.
</ParamField>

## Response

Returns a confirmation object:

```json theme={null}
{
  "id": "tpl_abc123",
  "object": "template",
  "deleted": true
}
```

Deletion is permanent. The template's HTML, schema, and defaults are removed. PDFs previously generated from this template are unaffected — they were rendered at creation time and don't depend on the template continuing to exist.

<Warning>
  This action cannot be undone. If you need to restore a deleted template, re-create it from your local files using `pdfbase templates push`.
</Warning>

## Example

```bash theme={null}
curl -X DELETE https://api.pdfbase.dev/v1/templates/tpl_abc123 \
  -H "Authorization: Bearer pk_live_xxx"
```
