This function clears the spam box of all its contents for all email accounts.
Important:
This function deletes the Spam Box folder contents for every email address on the account, which includes the system user email account.
uapi --output=jsonpretty \ --user=username \ SpamAssassin \ clear_spam_box
{- "apiversion": 3,
- "func": "clear_spam_box",
- "module": "SpamAssassin",
- "result": {
- "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}