API Reference

Delete template

DELETE /templates/:id — remove a template.

DELETE/templates/:id

Permanently deletes the template. Emails already sent are unaffected.

import { MailBlastr } from 'mailblastr';

const mb = new MailBlastr('mb_xxxxxxxxx');

const { data, error } = await mb.templates.remove('tmpl_8f5c2a1e');
console.log({ data, error });

Response

{ "object": "template", "id": "tmpl_8f5c2a1e", "deleted": true }