Legacy API Notice: This documentation covers the Legacy Sent API (v2). While this API remains fully supported, we recommend new integrations use the latest Sent API v3 for enhanced features, improved performance, and long-term support.

Delete template by ID

Deletes a message template by ID for the authenticated customer. Templates with no messages are hard deleted; templates with message history are soft deleted.

DELETE
/v2/templates/{id}

Response Body

curl -X DELETE "https://example.com/v2/templates/7ba7b820-9dad-11d1-80b4-00c04fd430c8"
Empty
Empty
Empty

Deletion behavior

  • Template has no messages: the template is permanently deleted from the database (hard delete).
  • Template has messages: the template is marked as deleted but preserved for message history (soft delete with snapshot).

The template must exist and belong to the authenticated customer; the customer ID is extracted from the authentication token.