NuGet / Home

Repo for NuGet Client issues
Other
1.5k stars 252 forks source link

NuGet locals command should allow deleting specific packages from NuGet global packages folder #5713

Open SupporterMan opened 7 years ago

SupporterMan commented 7 years ago

Details about Problem

I have a nuget package that want to remove it from my project and I also want to clear its local global cache from userprofile.nuget\package. According to the manage package document, I only could use "nuget locals global-packages -clear" command to clear all global caches, not a specific one. Otherwise, I need to navigate to the .nuget\packages path in file folder and delete it manually.

NuGet product used: NuGet.exe NuGet version (4.1.0)

edit by @nkolev92

This issue should cover the VS side of things as well. https://github.com/NuGet/Home/issues/8204

anangaur commented 7 years ago

cc @emgarten The following seem like repeated asks:

In the 2nd case it clears all packages that are directly referenced in the project.

emgarten commented 7 years ago

Looks very useful. It would also be nice to prune everything not in a solution, or older than a certain time.

neolib commented 7 years ago

This win my vote. It should be very useful to remove older packages than just clear all of global cache.

mishra14 commented 7 years ago

@SupporterMan @neolib Thanks for reporting this request. We will consider this request, when possible.

CZEMacLeod commented 1 year ago

Could really do with nuget locals http-cache -clear -packages {list of packages} myself. And/or the package to automatically be cleared from the http-cache when it is pushed.

gioce90 commented 3 weeks ago

There are news around this? I asked something which somehow relates to this one right here (well, that's something that would benefit from the feature discussed here)