External APItemplatesDelete Template

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/templates

Headers

HeaderDescription
x-api-key(Required) Your API Key for authentication
Authorization(Required) Bearer Token

Query Parameters

ParameterTypeRequiredDescription
TemplateNamestringYesThe exact name of the template to delete

Setting Up in Postman

  1. Set the request method to DELETE
  2. Select the Params tab
  3. Add TemplateName as a key and the template name as the value

Request

DELETE https://client-api.wappcloud.com/api/v1/external/templates?TemplateName=static_text_only

No 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

  • TemplateName must 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 APPROVED templates).