To delete a message, use the command messages/delete_message:
svc=messages/delete_message¶ms={"msgIndex":<uint>}
You can find an example of this request in the sample Messages.
Name | Description |
---|---|
msgIndex | message index |
{} /* empty object if execution successful, if not - error code */
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 |
|