---
title: "Remove member from group using group id"
method: DELETE
path: "/wiki/rest/api/group/userByGroupId"
tags: ["Group"]
---

# Remove member from group using group id

`DELETE /wiki/rest/api/group/userByGroupId`

Remove user as a member from a group.

**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
User must be a site admin.

## Query parameters

- `groupId` string, required
- `accountId` string, required
- `key` string
- `username` string

## Response `204`

Returned if the group was removed successfully.

## Other responses

- `400` — Returned if the name is missing or invalid.
- `401` — Returned if the calling user is not logged in to Confluence.
- `403` — Returned if the user is not a site admin. Note: A 204 is returned if the user is not part of the group.
- `404` — If no user group by the give name exists or if no user exists for the given accountId.

---

[API](https://skmtc.net/atlassian/apis/the-confluence-cloud-rest-api.md) · [All operations](https://skmtc.net/atlassian/apis/the-confluence-cloud-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/atlassian/the-confluence-cloud-rest-api/revisions/70088490f406/schema)
