Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SupporterMan opened this issue Aug 7, 2017 · 5 comments
Labels
Category:SeasonOfGiving https://devblogs.microsoft.com/nuget/nuget-season-of-giving/#season-of-giving Functionality:Locals Functionality:VisualStudioUI Priority:2 Issues for the current backlog. Product:dotnet.exe Product:NuGet.exe NuGet.exe Type:Feature

Comments

@SupporterMan
Copy link

SupporterMan commented Aug 7, 2017

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. #8204

@anangaur
Copy link
Member

anangaur commented Aug 7, 2017

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.

@emgarten
Copy link
Member

emgarten commented Aug 7, 2017

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

@neolib
Copy link

neolib commented Aug 7, 2017

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

@mishra14 mishra14 changed the title Add command to remove one specific nuget package local global cache [Consider] : nuget locals command should allow deleting specific packages from NuGet cache(s) Aug 7, 2017
@mishra14 mishra14 changed the title [Consider] : nuget locals command should allow deleting specific packages from NuGet cache(s) [Consider] : NuGet locals command should allow deleting specific packages from NuGet cache(s) Aug 7, 2017
@mishra14
Copy link
Contributor

mishra14 commented Aug 7, 2017

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

@emgarten emgarten added this to the 4.5 milestone Aug 7, 2017
@rrelyea rrelyea modified the milestones: 4.5, Backlog Oct 18, 2017
@nkolev92 nkolev92 changed the title [Consider] : NuGet locals command should allow deleting specific packages from NuGet cache(s) NuGet locals command should allow deleting specific packages from NuGet global packages folder Dec 31, 2019
@nkolev92 nkolev92 added Product:dotnet.exe Priority:2 Issues for the current backlog. Category:Quality Week Issues that should be considered for quality week and removed Triage:NeedsTriageDiscussion labels Apr 9, 2020
@dominoFire dominoFire self-assigned this Nov 17, 2020
@CZEMacLeod
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category:SeasonOfGiving https://devblogs.microsoft.com/nuget/nuget-season-of-giving/#season-of-giving Functionality:Locals Functionality:VisualStudioUI Priority:2 Issues for the current backlog. Product:dotnet.exe Product:NuGet.exe NuGet.exe Type:Feature
Projects
None yet
Development

No branches or pull requests