Skip to main content
DELETE
/
groups
/
{guid}
/
conversation
Reset Group Conversation
curl --request DELETE \
  --url https://{appid}.api-{region}.cometchat.io/v3/groups/{guid}/conversation \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --header 'onBehalfOf: <onbehalfof>' \
  --data '
{
  "preserveOrder": false
}
'
{
  "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

guid
string
required

GUID of the group whose conversation needs to be fetched.

Body

application/json
preserveOrder
boolean
default:false

When set to true, maintains the conversation's position in the user's conversation list after reset.

Response

200 - application/json

Resetted user Conversations

data
object