GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation deletes a specific npm package distribution tag from a group in GitLab. It is useful for managing npm packages within GitLab groups by removing outdated or incorrect distribution tags associated with a package. For example, if a package version tag is deprecated or needs to be cleaned up, this operation can be used to delete that tag.

Use Case Examples

  1. Deleting a deprecated npm package tag from a GitLab group to prevent its usage.
  2. Cleaning up incorrect or mistakenly added distribution tags from npm packages in a GitLab group.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the request.
Authentication The authentication method used for the 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, default is DELETE for this operation.
Query Parameters Query parameters for the request, specifically the package_name which identifies the npm package to modify.
Path Parameters Path parameters for the request, including the group ID and the distribution tag to delete.

Output

JSON

  • statusCode - HTTP status code of the delete operation response.
  • body - Response body from the GitLab API after deleting the npm package dist-tag.

Dependencies

  • GitLab API authentication token or API key credential

Troubleshooting

  • Ensure the group ID and package name are correctly URL-encoded and valid to avoid 404 Not Found errors.
  • Verify that the authentication token has sufficient permissions to delete package tags in the specified GitLab group.
  • Check network connectivity and base URL correctness if the request fails to reach the GitLab server.

Links

Discussion