Delete email account's outgoing messages

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.

SecurityBasicAuth
Request
query Parameters
email
required
string <email>

The email address to query.

Example: email=username@example.com
Responses
200

HTTP Request was successful.

Response Schema: application/json
apiversion
integer

The version of the API.

func
string

The name of the method called.

module
string

The name of the module called.

object
get/Email/delete_held_messages
Request samples
uapi --output=jsonpretty \
  --user=username \
  Email \
  delete_held_messages \
  email='username@example.com'
Response samples
application/json
{
  • "apiversion": 3,
  • "func": "delete_held_messages",
  • "module": "Email",
  • "result": {
    • "data": 0,
    • "errors": null,
    • "messages": null,
    • "metadata": { },
    • "status": 1,
    • "warnings": null
    }
}