GitLab API

GitlabTool

Actions1095

Nuget_packages → deleteApiV4ProjectsIdPackagesNuget*packageName*packageVersion

AI-generated

Summary

Delete a specific NuGet package version from a GitLab project by specifying the project ID, the package name, and the package version.

Inputs

  • id (required) — The ID or URL-encoded path of the project from which the NuGet package version will be deleted.
  • package_name (required) — The name of the NuGet package to delete.
  • package_version (required) — The specific version of the NuGet package to delete.
  • skipAuthentication — Option to skip authentication if set to true (default is false).
  • baseUrl — The base URL of the GitLab instance to send the request to, defaults to https://gitlab.com.

Output shape

no body — success/failure only

The operation performs an HTTP DELETE request to remove the specified NuGet package version from the project; no response body is expected on success. Errors will be returned if the project or package/version does not exist or if authentication fails.

Examples

Example 1: Deleting NuGet package version 1.0.1 named 'mynugetpkg' from project with ID 123

Set path parameter 'id' to '123', query parameters 'package_name' to 'mynugetpkg' and 'package_version' to '1.0.1', and use authentication with gitlabApi credential.

Links

Discussion