When working in Visual Studio and downloading packages from NuGet to the projects, a copy of these packages is stored on the local machine. When using virtual machines for development, like I do, the free space on the harddisk minimizes by time.

To remove these packages, we can use the NuGet.exe tool (see https://docs.microsoft.com/en-Us/nuget/consume-packages/managing-the-global-packages-and-cache-folders).

So first run

.\nuget.exe locals all -list

And with the output run

.\nuget.exe locals {section} -clear

 

Advertisements