GitLab API icon

GitLab API

Gitlab

Actions1062

Ci_variables → deleteApiV4ProjectsIdVariablesKey

AI-generated

Summary

Delete a specific CI/CD variable from a GitLab project by project ID (or URL-encoded namespace/project name) and variable key, optionally filtering by environment scope.

Inputs

  • id (required) — The ID of the project or URL-encoded NAMESPACE/PROJECT_NAME of the project owned by the authenticated user.
  • key (required) — The key of the CI/CD variable to delete.
  • filter[environment_scope] — Optional environment scope filter for the variable.
  • baseUrl — Base URL of the GitLab instance, defaulting to 'https://gitlab.com'.
  • skipAuthentication — Option to skip authentication (default is false).

Output shape

no body — success/failure only

The operation performs a DELETE request to remove the specified CI/CD variable. It does not return a response body; success or failure is indicated by HTTP status codes.

Links

Discussion