Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    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

    Scheduled Pinned Locked Moved Support
    4 Posts 3 Posters 13 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G Offline
      gunmaden
      last edited by

      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)

      1 Reply Last reply Reply Quote 0
      • atrippA Offline
        atripp inedo-engineer
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • G Offline
          gunmaden
          last edited by

          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
          
          1 Reply Last reply Reply Quote 0
          • gdivisG Offline
            gdivis inedo-engineer
            last edited by

            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

            1 Reply Last reply Reply Quote 0

            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
            • 1 / 1
            • First post
              Last post
            Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation