Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
Bulk-deletion nuget packages
-
Hi there,
I was told that after proget version 5.2.9, I will be able to delete nugets using REST API but I don't see it in the documentation at all. Do you have any idea where to check this?
Delete entities sounds like similar, but it is not => https://docs.inedo.com/docs/proget/reference/api/feed-management#delete
Any help would be much appreciated
Cheers
-
Hello;
There may have been a miscommunication somewhere; do you know specifically what you were told?
We recently added the Feeds Management API, but that's only to manage feeds (not packages).
I just updated the documentation, and it will be published soon.
You can delete (permanently remove) or unlist (hide from most search results) NuGet packages from your feed by navigating to the package page and clicking the corresponding Delete Package or Unlist Package button. These actions require the
Feeds_DeletePackage
orFeeds_UnlistPackage
permission attribute, respectively.To programmatically delete a package from your feed, you can use the NuGet CLI's delete command, or make a
DELETE
request via HTTP:DELETE http://{proget-server}/nuget/{feed-name}/package/{ID}/{VERSION}`
Note that this behavior is different than NuGet.org's DELETE command, which unlists packages instead.
To programmatically unlist (or relist) a package, you can use the
NuGetPackagesV2_SetListed
method within the Native API.Is that helpful?
-
@apxltd Yes it is, thanks for you fast response... I will try to use these commands you just wrote...