This function deletes all outbound email messages held in the mail queue for the specified email account.
Important:
When you disable the Receive Mail role, the system disables this function.
uapi --output=jsonpretty \ --user=username \ Email \ delete_held_messages \ email='username@example.com'
{- "apiversion": 3,
- "func": "delete_held_messages",
- "module": "Email",
- "result": {
- "data": 0,
- "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}