GitLab API

GitlabTool

Actions1095

Members → deleteApiV4ProjectsIdMembersUserId

AI-generated

Summary

Delete a member from a specified GitLab project, optionally controlling subresource member deletions and issuable unassignments.

Inputs

  • id (required) — The ID of the GitLab project from which to remove the member.
  • user_id (required) — The user ID of the member to be removed from the project.
  • skip_subresources — Optional flag to skip deletion of direct memberships of the removed member in subgroups and projects.
  • unassign_issuables — Optional flag to unassign the removed member from any issues or merge requests within the project.
  • baseUrl — The GitLab instance URL to use; defaults to https://gitlab.com.

Output shape

no body  success/failure only

The operation responds with HTTP success or failure indicating whether the member removal was successful. No response body content is expected.

Examples

Example 1: Remove a user from a project by specifying project and user IDs, optionally skipping affected subresource memberships or unassigning issues.

Set 'id' to the target project ID, 'user_id' to the member's user ID. Optionally set 'skip_subresources' and 'unassign_issuables' booleans to control cascading effects. Use default or custom 'baseUrl' for the GitLab server.

Links

Discussion