Templates API is currently in private beta and only available to a limited
number of users.
Path Parameters
The ID or alias of the template to delete.
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
await resend.templates.remove('34a080c9-b17d-4187-ad80-5af20266e535');
{
"object": "template",
"id": "34a080c9-b17d-4187-ad80-5af20266e535",
"deleted": true
}
Delete a template.
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
await resend.templates.remove('34a080c9-b17d-4187-ad80-5af20266e535');
{
"object": "template",
"id": "34a080c9-b17d-4187-ad80-5af20266e535",
"deleted": true
}
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
await resend.templates.remove('34a080c9-b17d-4187-ad80-5af20266e535');
{
"object": "template",
"id": "34a080c9-b17d-4187-ad80-5af20266e535",
"deleted": true
}
Was this page helpful?