Docs
Domains

Delete Domain

Remove a domain. Sending from it stops immediately.

DELETE/domains/{domain_id}

Path Parameters

domain_idstringrequired
Domain ID.
import { Resend } from 'resend';

const client = new Resend('pw_xxxxxxxxx');

const { data, error } = await client.domains.remove('{domain_id}');
Try itDELETE/domains/%7Bdomain_id%7D

No key yet? Create one in the dashboard.