GitLab API icon

GitLab API

Gitlab

Actions1062

Users → deleteApiV4UsersId

AI-generated

Summary

Deletes a GitLab user by ID, optionally removing their contributions (hard delete).

Inputs

  • id (required) — The ID of the user to delete (path parameter, integer).
  • hard_delete — When true, removes the user's contributions along with the account (query parameter, boolean).
  • skipAuthentication — Set to true to bypass credential authentication (boolean).
  • authentication — GitLab API credential (gitlabApi); required unless skipAuthentication is true.
  • baseUrl — Base URL of the GitLab instance (string, defaults to https://gitlab.com).

Output shape

On success, returns no content (HTTP 204). On failure, returns the error response from the GitLab API.

The operation uses the DELETE method on the endpoint /api/v4/users/{id}.

Links

Discussion