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_idstringrequired

The ID of the domain to delete.

Response Fields

objectstring

Always "domain".

idstring

The domain ID.

deletedboolean

Always 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

Response
{
  "object": "domain",
  "id": "d91cd9bd-1176-453e-8fc1-35364d380206",
  "deleted": true
}