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

# Delete Template

> Permanently remove a WhatsApp template from Meta and Connectly ✏️

Delete a WhatsApp template group from your account. This removes it from Meta (via the WhatsApp Business Management API) and from Connectly. Deleting unused templates frees capacity against your WABA's template limit.

<Warning>
  Deletion is permanent. Any active or scheduled campaign that references this template by name may fail to deliver after deletion. Review your campaigns and automations in the Connectly dashboard before deleting.
</Warning>

## Endpoint

```text theme={null}
DELETE https://api.connectly.ai/v1/businesses/{businessId}/templates/{templateGroupId}
```

The request takes no body.

## Path parameters

| Parameter         | Type   | Description                                                                                                                                                                                                      |
| ----------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `businessId`      | string | Your business ID (UUID format).                                                                                                                                                                                  |
| `templateGroupId` | string | The template **name** — the same `name` you set when creating it (e.g. `order_confirmation`). This is not an internal UUID. Deleting by name removes the entire template group, including all language variants. |

<Note>
  To find the template name, call [Get templates](/business-management/get-templates) and use the `name` field from the template group object.
</Note>

## Response

A successful deletion returns HTTP `200` with an empty body.

```json theme={null}
{}
```

This endpoint is **idempotent** — deleting a template that doesn't exist or was already deleted also returns `200`.

## Example

```bash theme={null}
curl -X DELETE "https://api.connectly.ai/v1/businesses/{businessId}/templates/order_confirmation" \
  -H "X-API-Key: YOUR_API_KEY"
```

<Info>
  If the same template name is registered on more than one WhatsApp channel under your business, this endpoint removes it from the default channel. Targeting a specific channel is not yet supported.
</Info>
