Finding Dead Packages in External Nuget Feeds

richard.stephens's Avatar

richard.stephens

11 Jan, 2017 06:53 PM

We are using some external file share feeds, Unfortunately one team at our company had their builds push 65 nuget packages to a feed each time they did a build and then manually created a release only when they needed it. This practice has almost run our server out of space I would like to know how to delete nuget packages that were never assigned to a release. Is there anyway to do this since retention policies don't seem to work for external feeds.

I am a software dev so I have no problem using the C# API.

  1. Support Staff 1 Posted by Robert Wagner on 12 Jan, 2017 03:34 AM

    Robert Wagner's Avatar

    Hi Richard,

    Thank you for getting in touch. This script will retrieve all the packages and versions associated with a release. If you have a lot of releases, this could slow the server down significantly while they are being retrieved.

    Hope that helps.

    Robert W

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac