delete_template
Remove a WhatsApp Business message template by name to manage your template library. This action permanently deletes the template.
Instructions
Delete a message template by name. This action is irreversible.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"template_name": "<template_name>"
},
"name": "delete_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| template_name | Yes | Name of the template to delete |
Implementation Reference
- src/whatsapp-client.ts:233-238 (handler)The actual implementation of the deleteTemplate method that makes the API request.
async deleteTemplate(templateName: string) { return this.request( `/${this.config.businessAccountId}/message_templates?name=${templateName}`, "DELETE" ); } - src/index.ts:319-329 (registration)The MCP tool registration for 'delete_template'.
server.tool( "delete_template", "Delete a message template by name. This action is irreversible.", { template_name: z.string().describe("Name of the template to delete"), }, async ({ template_name }) => executeWithHooks("delete_template", { template_name }, config, () => wa.deleteTemplate(template_name) ) );