> ## Documentation Index
> Fetch the complete documentation index at: https://docs.replyke.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Remove Member

> Remove a user from a group conversation

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

<ParamField path="conversationId" type="string" required>
  The ID of the conversation.
</ParamField>

<ParamField path="userId" type="string" required>
  The ID of the user to remove.
</ParamField>

## Response

```json theme={null}
{ "message": "Member removed." }
```

## Error Responses

<AccordionGroup>
  <Accordion title="Not Found — 404">
    ```json theme={null}
    { "error": "Conversation not found.", "code": "chat/not-found" }
    ```
  </Accordion>

  <Accordion title="Invalid Type — 400 Bad Request">
    ```json theme={null}
    { "error": "Members can only be removed from group conversations.", "code": "chat/invalid-type" }
    ```
  </Accordion>

  <Accordion title="Forbidden — 403">
    ```json theme={null}
    { "error": "Only group admins can remove members.", "code": "chat/not-a-member" }
    ```
  </Accordion>

  <Accordion title="Member Not Found — 404">
    ```json theme={null}
    { "error": "Member not found in this conversation.", "code": "chat/member-not-found" }
    ```
  </Accordion>
</AccordionGroup>
