# Cleanup of ~/.julia?

**URL:** <https://discourse.julialang.org/t/cleanup-of-julia/14176>\
**Category:** General Usage\
**Created:** [August 28, 2018, 8:20am UTC](https://discourse.julialang.org/t/cleanup-of-julia/14176 "2018-08-28T08:20:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![johann.spies](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johann.spies/32/8805_2.png) [@johann.spies](https://discourse.julialang.org/u/johann.spies)\
**Post date:** [August 28, 2018, 8:20am UTC](https://discourse.julialang.org/t/cleanup-of-julia/14176/1 "2018-08-28T08:20:33Z")

</div>

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

```julia
--- /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:

```julia
   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

---

<div class="post-metadata">

**Author:** ![tkoolen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tkoolen/32/1603_2.png) [@tkoolen](https://discourse.julialang.org/u/tkoolen)\
**Post date:** [August 28, 2018, 8:50am UTC](https://discourse.julialang.org/t/cleanup-of-julia/14176/2 "2018-08-28T08:50:16Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![lobingera](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lobingera/32/211_2.png) [@lobingera](https://discourse.julialang.org/u/lobingera)\
**Post date:** [August 28, 2018, 8:53am UTC](https://discourse.julialang.org/t/cleanup-of-julia/14176/3 "2018-08-28T08:53:40Z")

</div>

And it executes this on v0.6 also?

---

<div class="post-metadata">

**Author:** ![johann.spies](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johann.spies/32/8805_2.png) [@johann.spies](https://discourse.julialang.org/u/johann.spies)\
**Post date:** [August 28, 2018, 8:58am UTC](https://discourse.julialang.org/t/cleanup-of-julia/14176/4 "2018-08-28T08:58:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![cormullion](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cormullion/32/49131_2.png) [@cormullion](https://discourse.julialang.org/u/cormullion)\
**Post date:** [August 28, 2018, 9:22am UTC](https://discourse.julialang.org/t/cleanup-of-julia/14176/5 "2018-08-28T09:22:52Z")

</div>

Get rid of Luxor! 🙂 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…)

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [August 28, 2018, 9:56am UTC](https://discourse.julialang.org/t/cleanup-of-julia/14176/6 "2018-08-28T09:56:10Z")

</div>

> [@lobingera](#):
>
> And it executes this on v0.6 also?

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.
