On Windows 10 my .julia folder has over 18Gbytes of space used.
There are hundreds of thousands of files under .julia Running Pkg.gc has no effect on the number of files.
I decided to uninstall Julia (I use juliaup) then delete the .julia directory
MOAN - Windows runs a graphical file browser which displays endless useless information about deleted files. I am emptying my Recycle Bin and it is deleting 180 files per second - why oh why can it just not delete lots of files quickly?
One other small thing - should there be a remove / uninstall method in juliaup ?
Sorry, I only looked into .julia.packages, .julia is around 10 GB for me, too.
Worst offenders here: conda with 3 GB, compiled with 2.2 GB, MKL's in artifacts (around 600 MB for each version) followed by Enzyme in artifacts (around 300 MB for each version) followed by Mosek in packages (around 200 MB).
.julia can grow large, and if you are very active it will stay large even after gc.
I don’t think this is a problem, it’s just a sign of quite some number of great packages.
Removing .julia completely and creating it new from scratch is a viable option if you want to make free space. You even don’t need to reinstall Julia itself. Just run Julia after deletion and .julia will be created new and clean.
(You have to be careful for ./dev folder, you may loose development changes)
So far so good.
Deleting a large folder with many files can be a pain in Windows (and e.g. on a NFS mounted file system).