Namespace: "urn:zimbraAdmin"
DeleteMailbox SOAP Command

Delete a mailbox
The request includes the account ID (uuid) of the target mailbox on success, the response includes the mailbox ID (numeric) of the deleted mailbox the <mbox> element is left out of the response if no mailbox existed for that account.
Note: this request is by default proxied to the account's home server

Access: domain admin sufficient

Authorization token required true
Admin Authorization token required true

DeleteMailboxRequest

    <DeleteMailboxRequest> ## DeleteMailboxRequest
        <mbox id="{account-id}" /> ## MailboxByAccountIdSelector
    </DeleteMailboxRequest>

The following table describes elements and attributes you can define within a <DeleteMailboxRequest> element:

XPath Required / Optional Description
/mbox Optional (0 or 1) Mailbox
/mbox@id Required (only 1) Type:String
Account ID

DeleteMailboxResponse

    <DeleteMailboxResponse> ## DeleteMailboxResponse
        <mbox mbxid="{mailbox-id} (int)" [id="{account-id}"] [s="{size-in-bytes} (Long)"] /> ## MailboxWithMailboxId
    </DeleteMailboxResponse>

The following table describes elements and attributes you can define within a <DeleteMailboxResponse> element:

XPath Required / Optional Description
/mbox Optional (0 or 1) Details of the deleted mailbox.
Tthe <mbox> element is left out of the response if no mailbox existed for that account
/mbox@mbxid Required (only 1) Type:int
Mailbox ID
/mbox@id Optional (0 or 1) Type:String
Account ID
/mbox@s Optional (0 or 1) Type:Long
Size in bytes