Skip to main content

Delete Chat Room Messages


https://api.deadsimplechat.com/consumer/api/v1/chatroom/:roomId/messages

Delete Chat Room Messages

Delete All the messages in the Chat Room. If you do not pass any optional parameters then all the messages, including channel messages, private messages and files will be deleted.

Parameters
Path
roomIdstringroomId of the chat room
Query
doNotDeletePrivateMessagesbooleanIf this query is passed, then private messages will not be deleted.
doNotDeleteChannelMessagesbooleanIf this query is passed, then channel messages will not be deleted
authstringauth token

Responses

200

JSON

{
"success": true,
"roomId": "HTqSW_9-t"
}

404

JSON

{
"message": "invalid chatroom id"
}