Cleanup of ~/.julia?

On my computer ~/.julia takes up a lot of space and I think that might not be necessary:

--- /home/js/.julia --------------------------------------------------------------------------------------------------------------------
    6.3 GiB [##########] /v0.6                                                                                                          
    2.3 GiB [###       ] /packages
    1.2 GiB [#         ] /.cache
  362.3 MiB [          ] /v0.7
  282.7 MiB [          ] /dev
  123.4 MiB [          ] /clones
  102.5 MiB [          ] /compiled
   65.2 MiB [          ] /registries
   50.0 MiB [          ] /lib
  132.0 KiB [          ] /environments
  124.0 KiB [          ] /logs
    8.0 KiB [          ] /config

In 0.6 the biggest culprits are:

   1.1 GiB [##########] /Conda
  693.2 MiB [######    ] /Thrift
  447.3 MiB [####      ] /Plots
  439.6 MiB [####      ] /Luxor
  423.8 MiB [###       ] /GDAL
  398.4 MiB [###       ] /OnlineStats
  273.9 MiB [##        ] /METADATA
  221.5 MiB [##        ] /ArchGDAL
  213.4 MiB [#         ] /GR
  213.4 MiB [#         ] /Makie
  125.8 MiB [#         ] /Blink
  125.6 MiB [#         ] /CMakeWrapper
  119.1 MiB [#         ] /Electron
  111.1 MiB [#         ] /VegaLite
   95.2 MiB [          ] /GLVisualize
   80.5 MiB [          ] /NodeJS
   79.2 MiB [          ] /RDatasets
   64.5 MiB [          ] /JuliaDB
   63.6 MiB [          ] /.trash
   56.7 MiB [          ] /TextAnalysis
   41.0 MiB [          ] /CSV
   40.7 MiB [          ] /JuMP
   40.7 MiB [          ] /DataFrames

Is there a way to make this smaller?

Regards
Johann

1 Like

The new package manager has a gc (garbage collection) command.

And it executes this on v0.6 also?

Thanks @tkoolen.

Well on 0.6.4 it did not seem to make a difference. On 1.0 it removed about 1.3Gb of stuff from the “packages” directory.

To have 6.3 Gb in 0.6 does not look right.

Regards
Johann

Get rid of Luxor! :slight_smile: or at least delete its ‘docs/‘ directory which is far too large and needs to go one day. (But big docs aren’t such a problem in v1.0…)

1 Like

No, the loading system pre 0.7 prohibits any type of safe garbage collection. But if you are not using 0.6 you can just delete the folder.

2 Likes