Delete a WhatsApp template
delete_whatsapp_templateDelete a WhatsApp template
Deletes this one language version; the template's other languages stay. It can't be undone.
Deleting an approved or paused template locks its name at Meta for 30 days, so it needs
acknowledge_name_lock=true (without it, 409 template_delete_locks_name says until when).
A disabled template can't be deleted, and one a broadcast is sending right now, or one
Mojeeb's own notifications use, is refused with 409. It finds templates among the first
100 the list reads.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | The agent the resource belongs to. Another company's agent, or the nil UUID, is `404 agent_not_found`; an agent outside the key's agent list is `403 agent_not_authorized`. | |
| template_id | Yes | A template's `id` from `listWhatsAppTemplates`: one language version. One that isn't among the number's templates is `404 not_found`. | |
| connection_id | Yes | A connection of the agent. Another agent's connection is `404 not_found`. | |
| acknowledge_name_lock | No | `true` to accept that Meta locks the name of an approved or paused template for 30 days. |