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.

info

The auth query parameter is your private key. You can find it in your Dashboard under Developer -> Private Key.

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
authstringDashboard->Developer-Private Key is your auth

Responses

200

JSON

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

404

JSON

{
"message": "invalid chatroom id"
}