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!

    Cleaning Old NuGet Packages

    Scheduled Pinned Locked Moved Support
    proget
    5 Posts 1 Posters 57 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.
    • ? This user is from outside of this forum
      Guest
      last edited by

      I think this is likely a feature request. We use ProGet to post and fetch CI builds of our own shared components all day long. After awhile, you can imagine this results a number of unneeded builds to pile up that need to be cleaned because they are no longer relevant to current development. To get around this problem, I wrote my own cheesy script to save the most recent number of builds - and so it solves our problem, but it can be problematic. It seems like when I delete the packages, ProGet can stop serving newly posted packages while it's re-indexing - this has caused downstream CI builds to fail because ProGet can't find the latest posted package of the shared component. I got around that by cleaning only during lulls in dev. but I've wondered if there was a better way, or a cleaning feature in the product I've missed. Ultimately, I'd really like a setting in the feeds that would allow me to "Keep X Number of Builds" and cleanup the old packages on a schedule so I could toss my script. :-) Does a related-type feature exist and I've missed it? I've checked out Artifactory and Nexus and while they can clean maven snapshots AOK, both appear to lack this feature for NuGet packages. Thanks.

      Product: ProGet
      Version: 3.5.4

      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        As it turns out, this is part of the package retention feature planned for v3.6 (roadmap is here). This will allow a wide range of retention rules for package cleanup, including the scenario you've described. We may have a public beta released today, but that could get pushed to Monday depending on testing.

        1 Reply Last reply Reply Quote 0
        • ? This user is from outside of this forum
          Guest
          last edited by

          Wow. That's great news! I'll definitely be checking that out when the next version arrives.

          1 Reply Last reply Reply Quote 0
          • ? This user is from outside of this forum
            Guest
            last edited by

            I found that the feature to delete old packages is not available in the Free Edition. Just wanted to be sure... Is that correct, or should this be a Free Edition feature?

            Thanks

            1 Reply Last reply Reply Quote 0
            • ? This user is from outside of this forum
              Guest
              last edited by

              Retention Policies are not inclused in the free edition.

              You can still delete packages manually however.

              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