Nuget packages

Hello all,

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,

Hi Fayez,

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
http://MyOctopusServer/api/packages/bulk?ids=packages-MyApp-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
http://MyOctopusServer/api/packages/bulk?ids=packages-MyApp-1.0.1%2Cpackages-MyApp-1.0.2

You can list the packages by sending a GET to

getting last 30 packages (max available for GET) of the package id “MyApp”
http://MyOctopusServer/api/packages?nuGetPackageId=MyApp&take=30

Hope that helps,

Dalmiro