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.
Input Schema
TableJSON 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) ) );