Skip to main content

Delete Mailbox

Permanently terminates a mailbox by its numeric ID.

Endpoint​

DELETE /v2/mailboxes/{id}

:::danger Irreversible Operation This permanently terminates the mailbox and all associated data. This cannot be undone. Ensure all trading partner interconnects, callbacks, and pending parcels have been resolved before calling this endpoint. :::

Path Parameters​

ParameterTypeRequiredDescription
idintegerYesUnique numeric identifier of the mailbox to delete

Response​

Returns a success indicator confirming the mailbox has been terminated.

{
"success": true,
"data": null,
"errorCode": null,
"message": "Mailbox terminated."
}

Code Examples​

curl -X DELETE "https://rest.ecgrid.io/v2/mailboxes/$ID" \
-H "X-API-Key: $ECGRID_API_KEY"

See Also​