Skip to main content
DELETE
/
domains
/
:domain_id
/
tracking-domains
/
:tracking_domain_id
import { Resend } from 'resend';

const resend = new Resend('re_xxxxxxxxx');

const { data, error } = await resend.domains.trackingDomains.remove(
  'd91cd9bd-1176-453e-8fc1-35364d380206',
  'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
);
{
  "object": "tracking_domain",
  "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "deleted": true
}
Custom tracking domains are currently in private alpha and only available to a limited number of users. APIs might change before GA.To use the methods on this page, you must upgrade your Resend SDK:
npm install resend@6.10.0-preview-tracking-domains.0
Contact us if you’re interested in testing this feature.

Path Parameters

import { Resend } from 'resend';

const resend = new Resend('re_xxxxxxxxx');

const { data, error } = await resend.domains.trackingDomains.remove(
  'd91cd9bd-1176-453e-8fc1-35364d380206',
  'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
);
{
  "object": "tracking_domain",
  "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "deleted": true
}