GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation deletes a specific NuGet package version from a GitLab project. It is useful for managing and cleaning up package versions in a project's package registry, especially when certain versions are deprecated or no longer needed. For example, a user can automate the removal of outdated NuGet packages from their GitLab project to maintain a clean and efficient package repository.

Use Case Examples

  1. Automate deletion of a specific NuGet package version from a GitLab project to free up storage and reduce clutter.
  2. Remove deprecated or vulnerable package versions from a project's NuGet registry to ensure only safe and supported versions are available.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, defaulting to GitLab API key authentication.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET but DELETE is used for this operation.
Parameter Schema Defines the required parameters for the delete operation including project ID, package name, and package version.
Request Body Schema Schema for the request body, not used in this delete operation.
Request Path API endpoint path for deleting the NuGet package version.
Query Parameters Collection of query parameters including package_name and package_version to specify which NuGet package version to delete.
Path Parameters Collection of path parameters including the project ID to identify the project from which the package will be deleted.

Output

JSON

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

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID, package name, and package version are correctly specified; incorrect values will cause the API to fail.
  • Authentication errors may occur if the API key is missing or invalid; verify credentials are correctly configured.
  • Permission errors can happen if the API key does not have sufficient rights to delete packages in the project.

Links

Discussion