How can I properly delete a nuget package from my Azure artifacts feed?

Mark Mercer 0 Reputation points
2024-05-29T13:22:34.24+00:00

This is a question about Azure DevOps Pipelines but I was unable to find the right tag. It seems impossible to connect a ticket or help request to the Azure DevOps platform.

In Visual Studio I am unable to restore nuget packages from our Azure feed because it is over quota.

User's image

I would like to solve this problem by deleting some unneeded packages. But when I do our pipelines begin to fail saying that those packages are missing. Please note that the projects in those pipelines don't even use the package that I deleted. It's as if deleting it just completely broke the nuget feed. How can I remove some of these unnecessary packages to get our nuget feed below the 2GB limit?

PS. Also I don't see a way to tell how much space each package is taking up, that would be very useful in determining which ones to delete.

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,213 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sumarigo-MSFT 44,906 Reputation points Microsoft Employee
    2024-05-30T02:45:07.3966667+00:00

    @Mark Mercer Welcome to Microsoft Q&A Forum!
    You have reached Azure Files Storage Team! I'd recommend posting your question in https://developercommunity.visualstudio.com/spaces/21/index.html , it would the better medium to get better help since the issue doesn't seem to be storage, Issue is related to Azure Devops. (To receive insights from the targetted SMEs/audience.)

    Additional information: However, let me share some insights on your query

    To remove unnecessary packages from your Azure DevOps NuGet feed, you can follow these steps:

    1. Open the Azure DevOps portal and navigate to your project.
    2. Click on the "Artifacts" tab and select "Feed" from the dropdown menu.
    3. Select the NuGet feed that you want to manage.
    4. Click on the "Packages" tab to view a list of all packages in the feed.
    5. Select the packages that you want to delete and click on the "Delete" button.
    6. Confirm the deletion by clicking on the "Delete" button again.

    Please note that deleting packages from the feed can cause issues with your pipelines if the packages are being used by other projects. To avoid this, you can create a new version of the package with a different version number and update the projects that are using the old version to use the new version.

    To determine the size of each package in the feed, you can use the "Package Usage" report in the Azure DevOps portal. This report shows the number of downloads and the size of each package in the feed. You can use this information to identify which packages are taking up the most space and decide which ones to delete.

    Hope this helps!


    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments