# 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-000000000002",
  "userId": "00000000-0000-4000-8000-000000000001"
}
```

## Response

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