Delete message

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

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

:!: You can find an example of this request in the sample Messages.

Parameters

Name Description
msgIndex message index

Response

{}	/* empty object if execution successful, if not - error code */

Errors

Code Description
4 There is no such message or this message is the last one and thus can’t be deleted
6 Error deleting message