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 ?
I nearly always use Shift-Del for file and folder deletion.
The RecycleBin stays empty and clean always which I like.
Well, the deletion process still has the graphical visuals but its not a major time issue for me (ssd?) even for much larger data. This depends on hardware and file system.
(A proper backup strategy is always obligatory!!! Not only because deleting with shift-del in this case.)
That seems slightly excessive. You can find tools like this which report where the space is spent. This would probably be interesting for others as well.
Not difficult to guess where space is spent. I referred to it before, the artifacts come with an excessive bloat of needless files (headers, (large) static libs, etc).
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).
This isn’t related to OP.
This is about Windows and deleting large folders with many files and a not helpful visualization of this deletion process. That’s why we are in Offtopic.
.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).