DELETE
/
moderation
/
messages
/
{id}
Delete message
curl --request DELETE \
  --url https://{appid}.api-{region}.cometchat.io/v3/moderation/messages/{id} \
  --header 'apikey: <api-key>'
{
  "data": {
    "success": true,
    "message": "Message with id 20011 has been deleted successfully."
  }
}

Authorizations

apikey
string
header
required

API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).

Path Parameters

id
string
required

Id of the message whose details are to be fetched.

Response

200 - application/json

Delete Message(s)

The response is of type object.