# Remove a Member from a Group

The user leaves the group; the account stays as it is.

## Overview

- `204`, no body. From the next decision on, the user no longer counts as the group's member.
- `404` `GROUP_NOT_FOUND` for a group that is not yours, `GROUP_NOT_MEMBER` (`The user is not a member`) for a user who is not in it.
- For `owner`, `tenantadmin`, `non_signing_admin` and `security_admin`.

## Endpoint

### `DELETE /v1/groups/{groupId}/members/{userId}`

Authentication: bearer token required.

Removes a user from a group.

**Path parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `groupId` | string (uuid) | yes | The group's id |
| `userId` | string (uuid) | yes | The member's user id |

**Responses**

`204` Removed

`404` Not a member

```json
{
  "statusCode": 404,
  "error": "NotFoundError",
  "message": "The user is not a member",
  "details": { "code": "GROUP_NOT_MEMBER" }
}
```

---

Web version: https://docs.aureahub.com/#group-member-remove
