Skip to content

Set up your WhatsApp Business API for free. No credit card needed.Set up your WhatsApp API for free.Get started

DELETE /v1/{waba_id}/message_templates

There are two ways to delete, matching Meta’s own two delete calls on the message templates path.

DELETE /v1/{waba_id}/message_templates?name=<name> deletes every language WhatsApp has for that name, and every matching row here — this mirrors what deleting by name does on Meta’s own API.

Terminal window
curl -X DELETE "$HELLO_API_URL/v1/<your-waba-id>/message_templates?name=order_shipped" \
-H "Authorization: Bearer $HELLO_API_KEY"
Query parameter Type Required Description
name string Yes Template name

DELETE /v1/{waba_id}/message_templates?hsm_id=<template_id>&name=<name> deletes a single template object (one name, one language) on WhatsApp and here. hsm_id is the template’s id, as list templates returns it.

Terminal window
curl -X DELETE "$HELLO_API_URL/v1/<your-waba-id>/message_templates?hsm_id=1234567890123456&name=order_shipped" \
-H "Authorization: Bearer $HELLO_API_KEY"
Query parameter Type Required Description
hsm_id string Yes The template’s ID (Meta’s template ID)
name string Yes Template name

The template must belong to the WABA in the path and, when name is given, have that name (case-insensitive). Otherwise the request returns 404 (Meta’s envelope, hello_code NOT_FOUND, error.code 100, subcode 33) and nothing is deleted.

The older DELETE /v1/templates/{template_id} still works and behaves the same, except that it returns Hello’s {"message", "code"} error format.

{ "success": true }

If WhatsApp refuses the delete, nothing is removed locally either — a later sync will still reflect whatever WhatsApp actually has.

Errors use Meta’s envelope. hello_code is error.error_data.hello_code.

Status hello_code error.code Cause
400 VALIDATION_ERROR 100 name wasn’t given, or hsm_id is missing on a single-language delete
401 UNAUTHORIZED 190 Missing, wrong or disabled API key
404 NOT_FOUND 100 (subcode 33) No such template or WABA in your organization
409 ACCOUNT_NOT_REGISTERED 133010 The WABA has no active, registered number
422 META_REJECTED WhatsApp’s own WhatsApp refused the delete. error_subcode, error_user_title and error_user_msg pass through when WhatsApp sends them.
500 DELETE_FAILED 131000 Temporary server error. Retry.