> For the complete documentation index, see [llms.txt](https://api.senderwiz.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api.senderwiz.com/customer/templates/delete-a-template.md).

# Delete a Template

### 🗑️ Delete a Template

Use this endpoint to remove a template from your account. This action is irreversible.

***

#### 🔹 HTTP Request

```http
DELETE API-URL/templates/TEMPLATE-UNIQUE-ID
```

***

#### 🔸 URL Segments

| Segment              | Required | Description                          |
| -------------------- | -------- | ------------------------------------ |
| `TEMPLATE-UNIQUE-ID` | Yes      | Unique ID of the template to delete. |

***

#### 🔐 Authorization Header

```
X-API-KEY: your-api-key-here
```

***

#### 💻 PHP Example

```php
// DELETE TEMPLATE
$response = $endpoint->delete('TEMPLATE-UNIQUE-ID');

// DISPLAY RESPONSE
echo '<hr /><pre>';
print_r($response->body);
echo '</pre>';
```

***

#### 📦 Sample JSON Response

```json
{
  "status": "success"
}
```
