Deletes a message.

This method requires the following permissions: messages.

Parameters

message_id
string

Identifier of the message to be deleted.

revoke
boolean

If this is an outgoing message that is still unread, delete it out of its recipients’ mailboxes as well. Messages deleted like this can’t be restored using messages.restore.

To revoke a previously deleted message, just call messages.delete again with revoke set to true.

By default false.

Result

Returns true on success.

Errors

Global errors may occur when calling this method.