Skip to content

Delete Conversation



wss conversation_delete

The conversation_delete request willl delete Convarsation by specified ID.

NameTypeDescription
idstringConversation ID for deletion
{
"id": "RequestId",
"success": true
}
{
"request": {
"conversation_delete": {
"id": "63077ad836b78c3d82af0812"
},
"id": "RequestId"
}
}

When a user leaves the group chat, the next message will also be sent to all users who are online and saved in the Messages collection:

{
"_id": "6666c4bb2429c50ad0eb0ff6",
"cid": "665ee4ab01f6a3b5ec90a2f4",
"body": "lane1991 has left the group",
"t": 1718011067,
"from": "65fcb3f67dbaace5021595b9",
"x": {
"type": "left_participants",
"user": {
"native_id": "646e2092d80fe5c4e688dfa0",
"_id": "646e2092d80fe5c4e688dfa0",
"login": "lane1991",
"recent_activity": 1717670392,
"created_at": "2024-03-21T22:25:58.169Z",
"updated_at": "2024-03-21T22:25:58.169Z"
}
},
"created_at": "2023-05-24T14:34:58.066Z"
}