Skip to content

Delete Message



wss message_delete

The message_delete request deletes multiple messages in a conversation. Also can delete for current user or for all users in a conversation.

NameTypeDescription
idsstringArray of messages that need to be deleted
cidstringConversation ID where messages are located
typestringmyself or all
{
"id": "RequestId",
"success": true
}
{
"request": {
"message_delete": {
"cid": "63077ad836b78c3d82af0812",
"ids": ["63077ad836b78c3d82af0812", "63077ad836b78c3d82af0813"],
"type": "myself" | "all"
},
"id": "RequestId"
}
}

If use “all”, then other users in this conversation who is online will receive the following message:

{
"message_delete": {
"cid": "63077ad836b78c3d82af0812",
"ids": ["63077ad836b78c3d82af0812", "63077ad836b78c3d82af0813"],
"type": "all",
"from": "634ec51c0b65918393dca5bf"
}
}