Finding Dead Packages in External Nuget Feeds

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.

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