Skip to main content

Delete domain

Request deletion of an existing Woodpecker domain. Domain lookup is case-insensitive. The domain must belong to the account, must have is_ready: true, and must not already be in deletion process.

Request

You can delete a domain only when it is ready for deletion, which means it has is_ready: true. If the domain is not ready yet, the endpoint returns a validation error.

warning

Deleting a domain also deletes all mailboxes attached to that domain. After the deletion is processed, those mailboxes will no longer exist and cannot be recovered.

Endpoint

DELETE https://api.woodpecker.co/rest/v2/domains/{domain_name}

Headers

x-api-key: {YOUR_API_KEY}

For details on how to authenticate your requests, please see the authentication guide.

Parameters

ParameterRequiredTypeDescription
domain_nameYesstringDomain name

Request samples

Delete a domain

curl --request DELETE \
--url "https://api.woodpecker.co/rest/v2/domains/piedpiper.com" \
--header "x-api-key: {YOUR_API_KEY}"

Response

Response examples

The domain deletion has been accepted