GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation deletes a specific dist-tag from an NPM package in a GitLab repository. It is useful for managing package versions by removing outdated or incorrect tags associated with an NPM package. For example, if a dist-tag like 'beta' or 'latest' needs to be removed from a package, this operation facilitates that action via the GitLab API.

Use Case Examples

  1. Deleting a 'beta' dist-tag from an NPM package named 'my-package' to prevent users from installing a pre-release version.
  2. Removing an incorrect or deprecated dist-tag from a package to maintain clean versioning in the GitLab package registry.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request.
Authentication The authentication method used for the API request, typically an API key credential.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method used for the request, which 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 for the request, specifically the dist-tag to be deleted from the package.

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 package name and dist-tag are correctly specified; incorrect values will cause the API to return errors.
  • Authentication errors may occur if the API key or token is missing or invalid; verify credentials are correctly configured.
  • Network or permission issues may prevent successful deletion; check network connectivity and user permissions on the GitLab repository.

Links

Discussion