DELETE
/
users
/
{uid}
/
conversation
Reset User Conversation
curl --request DELETE \
  --url https://{appid}.api-{region}.cometchat.io/v3/users/{uid}/conversation \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --header 'onBehalfOf: <onbehalfof>' \
  --data '{
  "conversationWith": "<string>",
  "deleteMessagesPermanently": true
}'
{
  "data": {
    "success": true,
    "message": "The conversation superhero1_user_superhero2 has been deleted successfully for UID superhero1."
  }
}

Authorizations

apikey
string
header
required

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

Headers

onBehalfOf
string
required

UID of the user on whose behalf the action is performed.

Path Parameters

uid
string
required

UID of the user whose conversation needs to be fetched.

Body

application/json

Response

200 - application/json

Resetted user Conversations

The response is of type object.