GitLab API

GitlabTool

Actions1095

User → deleteApiV4UserGpgKeysKeyId

AI-generated

Summary

Deletes the specified GPG key from the authenticated GitLab user’s account using the GitLab API path /api/v4/user/gpg_keys/{key_id}.

Inputs

  • Key_id (required) — ID of the GPG key to delete.
  • Authentication (required) — GitLab API credentials are required unless Skip Authentication is enabled.
  • Skip Authentication — Defaults to false. When enabled, hides the GitLab API authentication setting.
  • baseUrl — GitLab API base URL; defaults to https://gitlab.com. The source indicates the actual base URL is defined by the GitLab API credential.
  • Method — HTTP method selector, defaulting to GET in the UI; the operation’s path and name indicate deletion, but the source pack does not show how this setting is applied.

Output shape

A response from the GitLab API; the operation-specific response shape is not shown in the provided source.

The operation declares a required integer path parameter key_id. The UI’s method default is GET, so verify or set DELETE if the generated request does not select it automatically.

Links

Discussion