Skip to main content
DELETE
/
templates
/
{slug}
Delete Template
curl --request DELETE \
  --url https://app.lettr.com/api/templates/{slug} \
  --header 'Authorization: Bearer <token>'
{
  "message": "Template deleted successfully."
}
Permanently deletes a template and all of its versions. This action cannot be undone. Any future Send Email calls referencing this template’s slug will fail. Use the project_id query parameter if you have templates with the same slug across different projects.

Authorizations

Authorization
string
header
required

API key for authentication

Path Parameters

slug
string
required

The template slug (URL-friendly identifier)

Example:

"welcome-email"

Query Parameters

project_id
integer

Project ID to delete the template from. If not provided, uses the team's default project.

Required range: x >= 1

Response

Template deleted successfully

Response after successfully deleting a template

message
string
required

Human-readable response message

Example:

"Template deleted successfully."