Free space from nuget folder

Hello,
is there a way to check which packages are not used in X number of projects?

I have several projects on virtual machine under development, and my package folder is really full. How can I check which nugets are not used in those project, so I can safely delete them and free some space on disc? There is a lot of packages which are subpackages to some dependencies, but how to determine this? There are hundreds of them, so checking manually one by one may be too time consuming.
Also, all installed versions of packages are inside. How to check which versions are no longer in use in all projects?
For the main packages I can write a bot which will check all config json files and all packages names + versions and compare them - but what about subpackages to package? They are not listed in json config files of the projects.
C:\Users\user1.nuget\packages

Thank you.

Hi @olgu - I believe there is no direct method in the tool to remove the unused packages. But, one way to handle this case going forward, while publishing make sure you remove the unnecessary dependencies from your project. The recent versions of studio, provide the option to check the Remove Unnecessary Dependencies Option, while publishing which automatically removes from the project without any manual effort.