cURL
curl --request DELETE \ --url https://{appid}.api-{region}.cometchat.io/v3/users/{uid}/friends \ --header 'Content-Type: application/json' \ --header 'apikey: <api-key>' \ --data '{ "friends": [ "<string>" ] }'
{ "data": { "success": true, "message": "Deleted the friend relations succussfully" } }
The API removes friends for a given UID.
API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).
An UID of a user.
A list of api keys
The response is of type object.
object
Was this page helpful?