Lately, I’m trying to work directly with Nuget repository in Octopus, as we knew we can push the NuGet packages to Octopus and this works fine, my question : is it possible to search, delete and list the package in Octopus repository by nuget.exe or REST API.
Thanks for getting in touch. The Octopus built-in NuGet repository is write only, and can only be searched/edited from the Octopus API.
You can delete packages with the REST API sending an HTTP DELETE with the following URL
deleting a package with ID “MyApp” and version 1.0.0
deleting packages with the ID “MyApp” and versions 1.0.1, 1.0.2. More packages can be added following the same URL convention
You can list the packages by sending a GET to
getting last 30 packages (max available for GET) of the package id “MyApp”
Hope that helps,