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!

    Bulk-deletion nuget packages

    Scheduled Pinned Locked Moved Support
    3 Posts 2 Posters 46 Views 2 Watching
    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.
    • L Offline
      luis_angel.santamarta_9206
      last edited by

      Hi there,

      I was told that after proget version 5.2.9, I will be able to delete nugets using REST API but I don't see it in the documentation at all. Do you have any idea where to check this?

      Delete entities sounds like similar, but it is not => https://docs.inedo.com/docs/proget/reference/api/feed-management#delete

      Any help would be much appreciated
      Cheers

      1 Reply Last reply Reply Quote 0
      • apxltdA Offline
        apxltd inedo-engineer
        last edited by

        Hello;

        There may have been a miscommunication somewhere; do you know specifically what you were told?

        We recently added the Feeds Management API, but that's only to manage feeds (not packages).

        I just updated the documentation, and it will be published soon.

        You can delete (permanently remove) or unlist (hide from most search results) NuGet packages from your feed by navigating to the package page and clicking the corresponding Delete Package or Unlist Package button. These actions require the Feeds_DeletePackage or Feeds_UnlistPackage permission attribute, respectively.

        To programmatically delete a package from your feed, you can use the NuGet CLI's delete command, or make a DELETE request via HTTP:

        DELETE http://{proget-server}/nuget/{feed-name}/package/{ID}/{VERSION}`
        

        Note that this behavior is different than NuGet.org's DELETE command, which unlists packages instead.

        To programmatically unlist (or relist) a package, you can use the NuGetPackagesV2_SetListed method within the Native API.

        Is that helpful?

        Founder and CEO, Inedo

        L 1 Reply Last reply Reply Quote 1
        • L Offline
          luis_angel.santamarta_9206 @apxltd
          last edited by

          @apxltd Yes it is, thanks for you fast response... I will try to use these commands you just wrote...

          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