GitLab API

GitlabTool

Actions1095

Members → deleteApiV4GroupsIdMembersUserId

AI-generated

Summary

Delete a specific member from a GitLab group by group ID and user ID, optionally controlling removal of memberships in subgroups and unassigning issuables.

Inputs

  • id (required) — The group ID identifying the GitLab group from which to remove the member.
  • user_id (required) — The user ID of the member to remove from the group.
  • skip_subresources — Optional flag to skip deleting the member's direct memberships in subgroups and projects within the group.
  • unassign_issuables — Optional flag to unassign the removed member from issues or merge requests within the group or project.

Output shape

no body — success/failure only

This operation issues a DELETE request to remove a group member. Success or failure is indicated by the HTTP response status, with no data returned in the response body.

Examples

Example 1: Remove a group member while also deleting their memberships in all subgroups and projects and unassigning them from issues or merge requests.

Set 'id' to the target group ID, 'user_id' to the member's user ID, and leave 'skip_subresources' and 'unassign_issuables' as false or unset.

Links

Discussion