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.
The array of friends to remove.
A list of api keys
Was this page helpful?