Sign inGet Started

Delete a template's open draft

DELETE
/v1/whatsapp/templates/{template_ref}/versions/{version_id}
await bird.whatsapp.templates.versions.delete("order_update", "wav_01krdgeqcxet5s7t44vh8rt9mg");

Deletes the draft and leaves the template without an open draft. Use Create a template draft to create another. Deleting a draft does not change the version used for sends, and submitted versions are immutable.

The email channel has an operation of the same name and shape that behaves differently: there, the draft's content resets to what is published and the draft itself remains. On WhatsApp the draft is gone until a new one is opened.

Parameters

template_refstring

Template ID (wat_ prefix) or slug. A value that parses as a valid ID resolves by ID; any other value resolves as a slug.

version_idstring

ID of the template version (wav_ prefix), as returned by the version list.

Continue with the documentation, guides and examples for this topic.