curl --request DELETE \
--url https://apix.us.amity.co/api/v4/users/{userId} \
--header 'Authorization: Bearer <token>'
{
"success": true
}
curl --request DELETE \
--url https://apix.us.amity.co/api/v4/users/{userId} \
--header 'Authorization: Bearer <token>'
{
"success": true
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
User public id
true - it will hard delete this user created channels, messages, comments, posts, polls, reactions after user is deleted.
true - it will hard delete this user messages after user is deleted.
true - it will hard delete this user posts after user is deleted.
true - it will hard delete this user comments after user is deleted.
return success:'true' when deletion is successful
The response is of type object
.