Generated from Postwind commit a19b2e4 OpenAPI 0.1.0 synced

DELETE/api/v1/projects/{project_id}/domains/{domain_id}

Needs scope: writeMCP tool: delete_sending_domain operationId delete_sending_domain

Delete a sending domain

Deletes the domain for good: no read finds it again, its name is free for a new domain of the project, and its DKIM private key is not kept. Records domain.deleted. The domain’s records stay in DNS: remove them at the provider. A second call finds nothing (404). Needs scope write. A domain with a campaign in sending will be refused (409) once campaigns exist (P5).

Parameters

NameInTypeDescription
project_idrequired path string · uuid The project’s id
domain_idrequired path string · uuid The domain’s id

Request body

None.

Responses

204

The domain is deleted

No content.

403

A project key without scope write (forbidden)

Problem (application/problem+json)

404

No such project or domain in it (a deleted domain included), or another project’s (not_found)

Problem (application/problem+json)

409

The project is deleted (conflict)

Problem (application/problem+json)

429

The key is over its rate limit, api.rate_limit_per_minute requests a minute on this node (rate_limited)

HeaderTypeDescription
Retry-AfterintegerSeconds until the key’s next request passes; rounded up.

Problem (application/problem+json)

504

Postwind’s storage did not answer within its time limit (storage_timeout). A change the request makes may still take effect: check before repeating it. A repeat with the same Idempotency-Key never runs it twice: it is 409 idempotency_key_in_progress until the key’s 24 h end

Problem (application/problem+json)