Skip to main content

Delete domain mailbox

Request deletion of an existing mailbox from a domain. Domain and mailbox lookups are case-insensitive. The mailbox must belong to the account, must belong to the domain in the path, and must not already be in a deletion status.

Request

You can delete a mailbox only when it is ready for deletion, which means it has the PAID status. If the mailbox is not ready yet, the endpoint returns a validation error with the cannot_delete_due_to_not_connected_mailbox issue.

warning

After the deletion is processed, the mailbox will no longer exist and cannot be recovered.

Endpoint

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

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
mailbox_emailYesstringMailbox email address. URL-encode it if your client does not encode path parameters automatically, for example richard%40piedpiper.com

Request samples

Delete a mailbox

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

Response

Response examples

The mailbox deletion has been accepted