Skip to main content

Delete Chat Room Message

https://api.deadsimplechat.com/consumer/api/v2/chatroom/:roomId/message/:messageId?auth=
info

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

Send a HTTP Delete Request to delete a chat room message.

Query Parameters

ParameterDescriptionData Type
authGo to Dashboard -> Developer -> Private Key is your authString

Path Parameters

ParameterDescriptionData Type
roomIdThe unique identifier for the chat roomString
messageId_id of the message you want to deleteString

Response

Success: 200

{
"success": true,
"message": "channel message deleted"
}

Bad Request: 400

{
"success": false,
"message": "message of the specified if not found"
}

Example Request

  • This example demonstrates a curl request to delete a chat room message.
  • The roomId is set to 'G1M_aMHjR'.
  • The messageId is set to '65a58d357fb137599194072f'.
  • The private key (used for auth) is set to '32326a74704a39394d676d2d3872315f78545f38435f656f6c554a325842776341754f4b4f41336c743335774b344361'.
curl -X DELETE "https://api.deadsimplechat.com/consumer/api/v2/chatroom/G1M_aMHjR/message/65a58d357fb137599194072f?auth=32326a74704a39394d676d2d3872315f78545f38435f656f6c554a325842776341754f4b4f41336c743335774b344361"