Home: NuGet locals command should allow deleting specific packages from NuGet global packages folder

Created on 7 Aug 2017  路  4Comments  路  Source: NuGet/Home

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

Customer Sprint Quality Week Locals VisualStudioUI Backlog 2 NuGet.exe VS.Client dotnet.exe Feature

Most helpful comment

cc @emgarten The following seem like repeated asks:

  • nuget locals global-packages -clear -packages {list of packages}
  • nuget locals global-packages -clear -project {path to project file}

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

All 4 comments

cc @emgarten The following seem like repeated asks:

  • nuget locals global-packages -clear -packages {list of packages}
  • nuget locals global-packages -clear -project {path to project file}

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vsfeedback picture vsfeedback  路  3Comments

blackchoey picture blackchoey  路  3Comments

skofman1 picture skofman1  路  3Comments

clairernovotny picture clairernovotny  路  3Comments

rrelyea picture rrelyea  路  3Comments