Delete Template
Overview
This API permanently deletes a WhatsApp message template from your Meta Business account by name.
Warning: Deleting a template is permanent and cannot be undone. All active campaigns or flows using this template will fail to send after deletion. Ensure the template is no longer in use before deleting.
Endpoint
DELETE https://client-api.wappcloud.com/api/v1/external/templatesHeaders
| Header | Description |
|---|---|
x-api-key | (Required) Your API Key for authentication |
Authorization | (Required) Bearer Token |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
TemplateName | string | Yes | The exact name of the template to delete |
Setting Up in Postman
- Set the request method to DELETE
- Select the Params tab
- Add
TemplateNameas a key and the template name as the value
Request
DELETE https://client-api.wappcloud.com/api/v1/external/templates?TemplateName=static_text_onlyNo request body is required.
Response (Success)
{
"success": true,
"code": 200,
"message": "Template deleted successfully"
}Error Responses
400 Bad Request — Template Not Found or Already Deleted
{
"success": false,
"code": 400,
"message": "Failed to delete message template"
}401 Unauthorized
{
"error": "Missing authToken or x-api-key"
}403 Forbidden
{
"error": "Invalid or inactive API key"
}Notes
TemplateNamemust match the template name exactly as it appears in Meta — it is case-sensitive.- If multiple templates share the same name (different languages), all language variants are deleted.
- Use List Templates to confirm the exact template name before deleting.
- After deletion, the template name may be reused after a cooling-off period enforced by Meta (typically 30 days for
APPROVEDtemplates).