GitLab API icon

GitLab API

Gitlab

Actions1062

Cluster_agents → deleteApiV4ProjectsIdClusterAgentsAgentIdTokensTokenId

AI-generated

Summary

Delete a specific token for a cluster agent within a GitLab project by specifying the project ID/path, agent ID, and token ID.

Inputs

  • Id (required) — The ID or URL-encoded path of the GitLab project containing the cluster agent.
  • Agent_id (required) — The ID of the cluster agent whose token is to be deleted.
  • Token_id (required) — The ID of the agent token to delete.
  • Skip Authentication — Optionally bypass authentication for the request.
  • baseUrl — The base URL of the GitLab instance; defaults to https://gitlab.com.

Output shape

no body success/failure only

A successful deletion returns no content. Errors or failure states may be returned as error messages or status codes.

Examples

Example 1: Delete a cluster agent token

Provide the project ID or path (id), the agent's ID (agent_id), and the token ID (token_id) to delete that specific token from the cluster agent in the GitLab project.

Links

Discussion