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