Skip to main content
DELETE
/
templates
/
{id}
import { Emailr } from 'emailr';

const emailr = new Emailr('em_xxxxxxxxx');

const { data, error } = await emailr.templates.remove(
  '34a080c9-b17d-4187-ad80-5af20266e535',
);
{
  "object": "template",
  "id": "34a080c9-b17d-4187-ad80-5af20266e535",
  "deleted": true
}
DELETE https://api.emailr.dev/templates/{id}

Path Parameters

id | alias
string
The ID or alias of the template to delete.
import { Emailr } from 'emailr';

const emailr = new Emailr('em_xxxxxxxxx');

const { data, error } = await emailr.templates.remove(
  '34a080c9-b17d-4187-ad80-5af20266e535',
);
{
  "object": "template",
  "id": "34a080c9-b17d-4187-ad80-5af20266e535",
  "deleted": true
}