Skip to main content
Remove Member
Removes an active member from a group conversation. The caller must be an active admin. Only group conversations support member removal. The removed user’s membership row is soft-deactivated (isActive: false, leftAt set to now). They are evicted from the real-time room immediately.

Path Parameters

string
required
The ID of the conversation.
string
required
The ID of the user to remove. Your own id is refused (400 chat/own-member-id): to leave, use DELETE /chat/conversations/:conversationId/members/me.

Query Parameters

string
Service key only, and required with one: the user this request acts as. Must be an active admin of the conversation. A user token always acts as its own user and must not send it (400 chat/acting-user-not-allowed).

Response

204 No Content on success, with no body.

Error Responses

userId is the acting user (the token’s user, or the user named by actingUserId). This route acts on another member; check your own membership with GET /chat/conversations/:conversationId/members/me and leave with DELETE /chat/conversations/:conversationId/members/me.
A user token sent actingUserId, even naming its own user. Only a service key names the user it acts as; a user token always acts as its own user.
Returned when a service key names an actingUserId that isn’t a user in this project.
A service key sent no actingUserId.
The acting user isn’t an active member of the conversation.
The acting user is a member of the group without the admin role.