GitLab API

GitlabTool

Actions905

Overview

This node operation deletes a specific Conan package version from a GitLab project. It is useful for managing and cleaning up package repositories by removing outdated or unwanted Conan packages. For example, a user can delete a particular version of a Conan package identified by its name, version, username, and channel within a project on GitLab.

Use Case Examples

  1. Deleting a deprecated Conan package version from a project to free up storage and maintain repository hygiene.
  2. Removing a mistakenly uploaded package version to prevent its usage in builds.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use, typically an API key credential for GitLab.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The 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 specific Conan package to delete, including project ID, package name, version, username, and channel.

Output

JSON

  • statusCode - HTTP status code of the delete operation response.
  • body - Response body from the GitLab API after attempting to delete the package.

Dependencies

  • GitLab API authentication token or API key credential

Troubleshooting

  • Ensure the project ID and package identifiers (name, version, username, channel) are correct and URL-encoded if necessary.
  • Authentication errors may occur if the API token is missing, expired, or lacks sufficient permissions to delete packages.
  • HTTP 404 errors indicate the specified package or project was not found; verify the parameters.
  • HTTP 403 errors indicate insufficient permissions; ensure the API token has delete rights on the project.

Links

Discussion