Skip to content

Support NuGet Delete Service

Moaz Khalifa requested to merge 38275-Implement-nuget-delete-service into master

What does this MR do and why?

Add support for nuget delete command & dotnet nuget delete command.

In this MR, users can use Nuget cli in order to delete a package. Previously, that was only possible through the UI or the APIs.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

  1. Publish a Nuget package or use an existing one to test against.
  2. Make sure you have nuget cli installed.
  3. In the terminal, run the following command:
nuget delete <package_name> <package_version> -Source http://gdk.test:3000/api/v4/projects/<project_id>/packages/nuget/index.json -apikey <personal_access_token>
  1. The package should be enqueued for deletion and its status becomes pending_destruction. A cronjob would pick all pending_destruction packages later and destroy them.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #38275 (closed)

Edited by Moaz Khalifa

Merge request reports