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)


  • inedo-engineer

    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
    

  • inedo-engineer

    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.tgz

    For Debian, the url query string should look like this:

    name={name}&version={version}&group={component}&qualifier=arch%3Damd64
    

    Does this help?

    -Greg


Log in to reply
 

Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation