Service: zimbraAdmin

Command: ExportAndDeleteItems
Namespace: urn:zimbraAdmin
Description: Exports the database data for the given items with SELECT INTO OUTFILE and deletes the items from the mailbox. Exported filenames follow the pattern {prefix}{table_name}.txt. The files are written to sqlExportDir. When sqlExportDir is not specified, data is not exported. Export is only supported for MySQL.
Properties:
Authorization token required true
Admin Authorization token required true

ExportAndDeleteItemsRequest

    <ExportAndDeleteItemsRequest [exportDir="{export-dir-path}"] [exportFilenamePrefix="{filename-prefix}"]> ## ExportAndDeleteItemsRequest
        <mbox id="{id} (int)"> ## ExportAndDeleteMailboxSpec
            (<item id="{id} (int)" version="{version} (int)" /> ## ExportAndDeleteItemSpec)*
        </mbox>
    </ExportAndDeleteItemsRequest>

elements and attributes you can define within a <ExportAndDeleteItemsRequest> element:

XPath Required / Optional Description
@exportDir Optional (0 or 1) Type: String
Path for export dir
@exportFilenamePrefix Optional (0 or 1) Type: String
Export filename prefix
/mbox Required (only 1) Mailbox
/mbox@id Required (only 1) Type: int
ID
/mbox/item Optional (0 or more) Items
/mbox/item@id Required (only 1) Type: int
ID
/mbox/item@version Required (only 1) Type: int
Version

ExportAndDeleteItemsResponse

    <ExportAndDeleteItemsResponse /> ## ExportAndDeleteItemsResponse