delete_message

To delete a message, use the command messages/delete_message:

Copied!
svc=messages/delete_message&params={"msgIndex":<uint>}

You can find an example of this request in the sample messages.

Parameters

The required parameters are marked with an asterisk (*).

Name

Description

msgIndex*

Message index.

Response

Copied!
{} /* an empty object if the execution is successful; if not, an error code */

Error codes

Error code

Description

4

There is no such message or this message is the last one and can't be deleted, or failed to fetch the unit.

6

Error deleting message.

7User not found, or no rights on message deletion.
Download PDF file
Download Word document

See also