GitLab API

GitlabTool

Actions1000

Overview

This node operation deletes a specific Conan package from a GitLab project using the GitLab API. It is useful for managing and cleaning up package repositories by removing outdated or unwanted Conan packages. For example, a user can delete a package version from a project to free up storage or remove deprecated software versions.

Use Case Examples

  1. Deleting a specific Conan package version from a GitLab project to maintain repository hygiene.
  2. Automating package cleanup in CI/CD pipelines by removing old or unused Conan packages.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the API request.
Authentication Type of authentication used for the API request, defaulting to GitLab API key.
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 API path to identify the specific Conan package to delete.

Output

JSON

  • statusCode - HTTP status code returned by the API after the delete operation.
  • responseBody - Response body returned by the API, typically empty or confirmation message for delete.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure all required path parameters (id, package_name, package_version, package_username, package_channel) are correctly provided; missing or incorrect parameters will cause the API call to fail.
  • If authentication is enabled, verify that the GitLab API key credential is valid and has sufficient permissions to delete packages in the specified project.
  • Common error messages include 404 Not Found if the package or project does not exist, and 403 Forbidden if the API key lacks delete permissions.

Links

Discussion