admin管理员组文章数量:1384639
I unlisted my NuGet packages from my Azure Devops feed, but now my Storage is full, and I want to go delete them. They no longer show up in the list of available packages, and so I am unable to find them in the Portal to delete them. Please suggest another way to find this information; I don't know how to delete them otherwise.
I unlisted my NuGet packages from my Azure Devops feed, but now my Storage is full, and I want to go delete them. They no longer show up in the list of available packages, and so I am unable to find them in the Portal to delete them. Please suggest another way to find this information; I don't know how to delete them otherwise.
Share Improve this question asked Mar 17 at 19:55 codeMonkeycodeMonkey 4,8652 gold badges38 silver badges58 bronze badges2 Answers
Reset to default 0According to the document,
You must be a Feed Owner to delete it.
As the Feed Owner, you can delete a specific NuGet package version by clicking the Delete button in the More options dropdown menu in the upper right corner of the package version page.
After deletion, you may proceed to Delete the packages permanently from the recycle bin.
Please also note that
Once you publish a package to your feed, its version number is reserved permanently. Even if you delete it from your feed, you cannot publish a new package with the same version number.
Typically, storage consumption should be updated within 24 hours, although in certain cases it might take up to 48 hours for the changes to be reflected. The Artifacts usage on the billing page of your anization is updated once a day. However, The Artifact Storage page is updated more frequently, which may lead to a minor discrepancy between the information displayed on the two pages.
What I wound up doing was accessing the REST API to see the unlisted packages. I got a Personal Access Token (PAT) and used that as my password for basic authentication with the Azure Devops endpoint. The request I used was as follows [Powershell]:
$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"
$headers.Add("Authorization", "••••••")
$response = Invoke-RestMethod 'https://feeds.dev.azure/{{anization}}/{{project}}/_apis/packaging/Feeds/{{feedId}}/packages?includeAllVersions=true&includeDeleted=false&api-version=7.2-preview.1' -Method 'GET' -Headers $headers
$response | ConvertTo-Json
I used the JSON response to see the unlisted packages. Then in the Portal UI, I could search upstream sources for those packages, click on the Version tab, and delete the packages for good.
本文标签: nugetAzure Devops Artifacts Can39t find unlisted packages to delete themStack Overflow
版权声明:本文标题:nuget - Azure Devops Artifacts: Can't find unlisted packages to delete them - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744537621a2611410.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论