Support NuGet Delete Service
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
- Publish a Nuget package or use an existing one to test against.
- Make sure you have nuget cli installed.
- 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>
- The package should be enqueued for deletion and its
status
becomespending_destruction
. A cronjob would pick allpending_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.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #38275 (closed)
Edited by Moaz Khalifa