GitLab API

GitlabTool

Actions1095

Ci_variables → deleteApiV4ProjectsIdVariablesKey

AI-generated

Summary

Delete a specific CI/CD variable from a GitLab project by its project ID and variable key, optionally filtering by environment scope.

Inputs

  • id (required) — The ID of a GitLab project or its URL-encoded namespace and project name owned by the authenticated user.
  • key (required) — The key/name of the CI/CD variable to delete from the project.
  • filter[environment_scope] — Optional environment scope to filter the variable deletion to a specific environment.
  • baseUrl — The base URL for the GitLab instance (default is https://gitlab.com).
  • skipAuthentication — Whether to skip authentication for this request (default false).

Output shape

no body — success/failure only

The operation performs an HTTP DELETE request to remove the variable. A successful deletion does not return a response body. Failure responses depend on GitLab API error handling.

Links

Discussion