v1

latestOpenAPI 3.0.2cPanel License2026-08-06657427.1 MB
SpamAssassin
Spam Management

Delete spam box contents

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.

get/SpamAssassin/clear_spam_box

Response

HTTP Request was successful.

apiversioninteger

The version of the API.

funcstring

The name of the method called.

modulestring

The name of the module called.

Example response

{
  "apiversion": 3,
  "func": "clear_spam_box",
  "module": "SpamAssassin",
  "result": {
    "status": 1
  }
}