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!
Cannot delete package using common packages API
-
Hi. I'm currently facing the problem with removing packages from some feeds (Maven / Debian / Python) using common packages API while it's working for Npm feed
There's no any errors, response is 200 OK but package is not removed
We are using ProGet Version 2023.18 (Build 15)
-
Hi @gunmaden_7628 ,
The Common Packages API does not work with Maven feeds, since they are not a package-based feed. Otherwise... it's hard to say what the issue is with Python or Debian, but most likely it's missing a parameter that identifies which file to delete?
If you can share more details about the calls you are making and the packages we may be able to help.
Cheers,
Alana -
Is there any possible maybe "undocumented" API method for removing Maven packages from feed? If no how it's possible to remove these packages?
For python packages I passed only required parameters
POST /api/packages/{feedName}/delete?name={name}&version={version}For debian packages I've tried to pass multiple combinations
POST /api/packages/{feedName}/delete?name={name}&version={version}&group={group}and
POST /api/packages/{feedName}/delete?name={name}&version={version}&group={group}&qualifier=amd64 -
Hi @gunmaden,
Right now there is no way to delete a Maven package using an API, but I can put that in as a feature request.
Regarding Python, you have to know the package file name to delete it, and pass it in as part of the qualifer, for example:
qualifier=filename%3Dmypackage.1.0.0.tgzFor Debian, the url query string should look like this:
name={name}&version={version}&group={component}&qualifier=arch%3Damd64Does this help?
-Greg
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login