-
Notifications
You must be signed in to change notification settings - Fork 257
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
Provide a disk clean-up option #8076
Comments
Additionally, we can add an date policy:
But not sure how that works when you've disabled NTFS Last Access Time... |
Dup of #4980 |
The #4980 suggests an automatic cleaning policy. This issue suggests a way to explicitly clear the cache. Even more specifically, this issue suggests an entry in the disk clean-up options. How are the two issues duplicate? |
Just wanted to follow-up with this. The proposal here is for a Windows feature, but NuGet already provides CLI tooling that will clear folders....
|
Thanks @donnie-msft, I pointed out the CLI tooling could be called using the |
Sorry, I actually missed your last sentence there, but I've added the docs link in case someone stumbles on this Issue. I personally like your idea of having some OS-level integration; however, it's likely not something that will become part of NuGet, We also have the previously mentioned backlog feature to prevent these folders from ballooning with no-longer-used packages in the first place. |
The NuGet cache should be listed in the Disk Clean-up entries. I am reaching low disk space every now and then while NuGet cache is happily eating gigabytes of unneeded data.
As far as I can tell from Creating a Disk Cleanup Handler, a simple registry entry might do without any code required, e.g.:
Alternatively (or in addition), the
CleanupString
can be used to invokenuget locals all -clear
to handle location overrides, provided the path tonuget
is known.The text was updated successfully, but these errors were encountered: