Skip to main content

Delete WABA Template

Delete a WhatsApp Business API (WABA) message template from your 2Chat account and from the messaging provider (Meta or Gupshup). All language variants of the template are deleted.

info

Requires a WABA channel connected to your 2Chat account. See How to connect WABA to 2Chat.

Path parameters

ParameterDescription
template_uuidUUID of the template to delete. Obtain this from Get WABA Templates (the uuid field).

Invocation

curl --request DELETE \
--url 'https://api.p.2chat.io/open/waba/templates/TMPxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \
--header 'X-User-API-Key: your_api_key_here'

Response

{
"success": true,
"message": "Template deleted successfully"
}
FieldDescription
successtrue when the template was deleted
messageHuman-readable confirmation message
caution

Deleting a template is permanent and cannot be undone. If your template has multiple language variants, all variants are deleted.