Delete Domain
Delete a domain by ID. This will also delete all associated DNS records.
DELETE
/domains/{domain_id}Resend Compatibility: Compatible
Requires a full_access API key.
Path Parameters
domain_idstringrequiredThe ID of the domain to delete.
Response Fields
objectstringAlways "domain".
idstringThe domain ID.
deletedbooleanAlways true.
curl -X DELETE 'https://api.postflare.app/domains/d91cd9bd-1176-453e-8fc1-35364d380206' \
-H 'Authorization: Bearer re_xxxxxxxxx'import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.domains.remove(
'd91cd9bd-1176-453e-8fc1-35364d380206'
);Response
{
"object": "domain",
"id": "d91cd9bd-1176-453e-8fc1-35364d380206",
"deleted": true
}