Using dotnet cli
The easiest way is to use the dotnet cli from a command prompt, this will now be installed along with any of the current dotnet sdks
You can list the local caches with this command:
dotnet nuget locals --list all
You can clear all caches with this command:
dotnet nuget locals --clear all
Using nuget.exe
First, download the NuGet command line tool from here.
Next, open a command prompt and cd to the directory to which nuget.exe was downloaded.
You can list the local caches with this command:
nuget locals all -list
You can clear all caches with this command:
nuget locals all -clear
Reference: https://docs.nuget.org/consume/command-line-reference