cURL
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." } }
Resetting User Conversation
API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).
UID of the user on whose behalf the action is performed.
UID of the user whose conversation needs to be fetched.
UID of a user
Permanently deletes messages in that particular conversation
Resetted user Conversations
Was this page helpful?