GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation deletes a specific dist-tag from an NPM package within a GitLab project. It is useful for managing package versions by removing outdated or incorrect distribution tags from packages hosted in GitLab's package registry. For example, if a dist-tag like 'latest' or 'beta' needs to be removed from a package version, this operation facilitates that.

Use Case Examples

  1. Removing the 'beta' dist-tag from an NPM package named 'my-package' in project with ID '12345' to prevent users from installing that version by default.
  2. Cleaning up deprecated dist-tags from packages to maintain a clean and accurate package registry.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the request (boolean). Defaults to false.
Authentication The authentication method used, typically an API key credential for GitLab.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method for the request, default is DELETE for this operation.
Query Parameters Query parameters for the request, specifically the package name to identify the NPM package.
Path Parameters Path parameters including the project ID and the dist-tag to delete.

Output

JSON

  • statusCode - HTTP status code of the delete operation response
  • body - Response body from the GitLab API after deleting the dist-tag, typically empty or confirmation message

Dependencies

  • GitLab API authentication token or API key credential

Troubleshooting

  • Ensure the project ID and package name are correctly URL-encoded to avoid 404 errors.
  • Verify that the authentication token has sufficient permissions to delete package dist-tags in the project.
  • Check that the dist-tag specified exists; attempting to delete a non-existent tag may result in an error.

Links

Discussion