GitLab API icon

GitLab API

Gitlab

Actions1062

Group_access_tokens → deleteApiV4GroupsIdAccessTokensTokenId

AI-generated

Summary

Delete a specific group access token in GitLab by providing the group ID and token ID.

Inputs

  • Id (required) — The unique identifier of the GitLab group where the access token exists.
  • Token_id (required) — The unique identifier of the access token to delete within the specified group.
  • Skip Authentication — Optionally skip authentication for this request (default is false).
  • baseUrl — The base URL of the GitLab instance; defaults to https://gitlab.com.

Output shape

no body — success/failure only

The operation performs a DELETE HTTP request to the endpoint /api/v4/groups/{id}/access_tokens/{token_id}. On success, it returns without a response body, indicating the token was deleted. Errors will be returned if the group or token ID are invalid or the user lacks permissions.

Examples

Example 1: Delete the access token with ID '12345' in the GitLab group with ID '67890'.

Set 'Id' to '67890' and 'Token_id' to '12345'. Ensure authentication is enabled unless explicitly skipped.

Links

Discussion