GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation deletes a specific Conan package from the GitLab package registry. It is useful for managing and cleaning up package versions that are no longer needed or are outdated. For example, a user can delete a particular version of a Conan package identified by its name, version, username, and channel to maintain a clean package repository.

Use Case Examples

  1. Deleting a deprecated version of a Conan package to free up storage and avoid confusion.
  2. Removing a package version that was published by mistake or contains errors.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use, defaulting to GitLab API authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, defaulting to GET but typically DELETE for this operation.
Path Parameters Parameters required to identify the Conan package to delete.

Output

JSON

  • status - The HTTP status code of the delete operation response.
  • message - A message indicating the result of the delete operation.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure that the package_name, package_version, package_username, and package_channel parameters are correctly specified and exist in the GitLab package registry.
  • Verify that the authentication credentials are valid and have sufficient permissions to delete packages.
  • Check the baseUrl to ensure it points to the correct GitLab instance.
  • If skipping authentication, ensure the GitLab instance allows unauthenticated delete requests (rare).
  • Common error messages include 404 Not Found if the package does not exist, and 403 Forbidden if the user lacks permission.

Links

Discussion