cURL
curl --request DELETE \ --url https://{appid}.api-{region}.cometchat.io/v3/users \ --header 'Content-Type: application/json' \ --header 'apikey: <api-key>' \ --data '{ "uidsToDeactivate": [ "<string>" ] }'
{ "data": { "deactivatedUids": [ "superhero2", "superhero3" ] } }
Deactivates users for the specified UIDs
API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).
Deactivated Users
The response is of type object.
object
Was this page helpful?