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 · 7 comments
Labels
Category:SeasonOfGiving https://devblogs.microsoft.com/nuget/nuget-season-of-giving/#season-of-giving Functionality:Locals Functionality:VisualStudioUI Package Manager UI et al 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
@donnie-msft donnie-msft added the Functionality:VisualStudioUI Package Manager UI et al label Jan 6, 2021
@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.

@gioce90
Copy link

gioce90 commented Nov 14, 2024

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)

@gioce90
Copy link

gioce90 commented Dec 30, 2024

Deleting specific packages from the NuGet global packages folder will improve the inner-loop development of a NuGet package on the local machine. But this issue has been open since 2017, so in the meantime I created a solution to address this problem.

I recently decided to make my solution public by releasing a package called NuJet (https://github.com/gioce90/NuJet). It enhances the inner-loop development and testing process for NuGet packages, especially in local workflows.

Feel free to check it out—I’d love to hear your feedback!

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 Package Manager UI et al 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