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!
ProGet - Delete API for Builds
-
Hi,
I've been looking to delete old builds from SCA, but cannot find any API endpoint for that.
All I could find was the option to archive builds, but that is not really what we need.
For projects there is at least the native API Projects_DeleteProject, but in the regular API the delete endpoint is also missing.
Could you add these missing endpoints?
-
Hi @jw ,
Nice catch, we'll add
pgutil builds deleteandpgutil builds projects deletevia PG-3189You may be able to use
pgutil builds createto archive a build (`--inactive), but I'm not sure. Either way, there's no way to flip it back, so we will update it.The
createcommand can also update, but it's not clear, so we will edit the help text to clarify.-- Dean
-
Thanks for the implementation.
A remark:
Both delete APIs have a bit odd behavior when it comes to return codes. They both always return 200 OK when anything was supplied, no matter if the project name (and version) matched anything to be deleted or not. Wouldn't 404 be more appropriate for the "I couldn't find anything to delete" case?Also I would like to renew my wish to automatically deploy a new version of Inedo.ProGet when something in pgutil was changed.