Delete a template
DELETE /v1/templates/{id}
Deletes the template from WhatsApp, then from Soosh. Only this language version is deleted.
Needs templates:write.
Path parameters
Section titled “Path parameters”id string · uuid
The template’s ID.
Drafts
Section titled “Drafts”A draft that was never submitted is only removed from Soosh.
Templates in use
Section titled “Templates in use”To delete a template that a broadcast uses, cancel the broadcast or wait for it to finish.
Returns
Section titled “Returns”204 No content.
Errors
Section titled “Errors”Besides the ones every request can get:
409
invalid_stateA preparing, scheduled, queued, processing or paused broadcast uses the template, or it is already being deleted.422
invalid_fieldWhatsApp refused to delete the template. The message is WhatsApp’s, and the template stays.