Node.js
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.domains.remove(
'd91cd9bd-1176-453e-8fc1-35364d380206',
);
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.domains.remove(
'd91cd9bd-1176-453e-8fc1-35364d380206',
);
{
"object": "domain",
"id": "d91cd9bd-1176-453e-8fc1-35364d380206",
"deleted": true
}
Node.js
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.domains.remove(
'd91cd9bd-1176-453e-8fc1-35364d380206',
);
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.domains.remove(
'd91cd9bd-1176-453e-8fc1-35364d380206',
);
{
"object": "domain",
"id": "d91cd9bd-1176-453e-8fc1-35364d380206",
"deleted": true
}
Documentation Index
Fetch the complete documentation index at: https://resend.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Removing a domain with a configured custom tracking subdomain will also remove the Resend provisioned proxy, breaking any existing email links that use that subdomain.To keep links working, set up your own proxy pointing to Resend’s tracking DNS records before removing the domain.