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
cc @emgarten The following seem like repeated asks:
In the 2nd case it clears all packages that are directly referenced in the project.
Looks very useful. It would also be nice to prune everything not in a solution, or older than a certain time.
This win my vote. It should be very useful to remove older packages than just clear all of global cache.
@SupporterMan @neolib Thanks for reporting this request. We will consider this request, when possible.
Most helpful comment
cc @emgarten The following seem like repeated asks:
In the 2nd case it clears all packages that are directly referenced in the project.