This function marks the selected mailbox's messages as deleted.
uapi --output=jsonpretty \ --user=username \ Mailboxes \ expunge_messages_for_mailbox_guid \ account='_mainaccount@example.com' \ mailbox_guid='2550860f0c58d158c92a000044f0d230' \ query='savedbefore 52w'
{- "apiversion": 3,
- "func": "expunge_messages_for_mailbox_guid",
- "module": "Mailboxes",
- "result": {
- "data": { },
- "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}