> For the complete documentation index, see [llms.txt](https://docs.tnid.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tnid.com/api-reference/001_user/007_groups/010__remove_group_user_member.md).

# Remove Group Member

GraphQL endpoint: `/user`

Removes a member from a group. Only group admins can remove members, and the last remaining admin cannot be removed.

## Query

```graphql
mutation ($groupId: ID!, $userId: ID!) {
  removeGroupUserMember(groupId: $groupId, userId: $userId) {
    status
  }
}

```

## Variables

```json
{
  "groupId": "00000000-0000-4000-8000-000000000001",
  "userId": "00000000-0000-4000-8000-000000000002"
}
```

## Response

```json
{
  "data": {
    "removeGroupUserMember": {
      "status": "OK"
    }
  }
}
```
