GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation deletes a specific CI variable from a GitLab group using the GitLab API. It is useful for managing CI/CD variables by removing outdated or unnecessary variables from a group's configuration. For example, if a variable containing sensitive information is no longer needed, this operation can securely delete it from the group.

Use Case Examples

  1. Deleting a CI variable named 'API_KEY' from a GitLab group with ID '12345' to revoke access or update credentials.
  2. Removing an obsolete environment variable from a project's group to clean up the CI/CD configuration.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for testing or public endpoints.
Authentication Type of authentication used, defaulting to GitLab API key authentication.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET but DELETE is used for this operation.
Path Parameters Parameters required in the URL path to identify the group and variable to delete.

Output

JSON

  • success - Indicates whether the variable was successfully deleted (true/false).
  • statusCode - HTTP status code returned by the API after the delete operation.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the group ID and variable key are correctly specified; incorrect values will cause the API to return errors such as 404 Not Found.
  • Authentication errors may occur if the API key is missing or invalid; verify the credential setup.
  • Network or base URL issues can cause connection failures; confirm the baseUrl is correct and accessible.

Links

Discussion