GitLab API

GitlabTool

Actions1095

Ci_variables → deleteApiV4AdminCiVariablesKey

AI-generated

Summary

Delete a CI/CD variable by its key from the GitLab instance's admin scope using the GitLab API.

Inputs

  • key (required) — The key (name) of the CI/CD variable to delete.
  • baseUrl — The base URL of the GitLab instance (default is https://gitlab.com).
  • skipAuthentication — Optional flag to skip authentication if set to true (default is false).

Output shape

No response body; success or failure indicated by HTTP status code.

The operation performs an HTTP DELETE request to the path /api/v4/admin/ci/variables/{key}. It deletes the specified CI/CD variable in the admin API scope. Authentication is required unless explicitly skipped.

Examples

Example 1: Delete a specific CI/CD variable by key

Set the 'Key' path parameter to the variable name to delete; the node performs DELETE on /api/v4/admin/ci/variables/{key}

Links

Discussion