# 16 GB large .julia/registries/General folder

**URL:** https://discourse.julialang.org/t/16-gb-large-julia-registries-general-folder/65682
**Category:** General Usage
**Tags:** general-registry
**Created:** [August 2, 2021, 2:16pm UTC](https://discourse.julialang.org/t/16-gb-large-julia-registries-general-folder/65682 "2021-08-02T14:16:13Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![albheim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/albheim/32/34660_2.png) [@albheim](https://discourse.julialang.org/u/albheim)
#### Post date: [August 2, 2021, 2:16pm UTC](https://discourse.julialang.org/t/16-gb-large-julia-registries-general-folder/65682/1 "2021-08-02T14:16:13Z")

</div>

I have had julia installed for maybe two years now, and realised the `.julia` folder has grown quite big, around 25 GB. I didn’t think too much about it since I have a lot of packages installed and I also run some python and know how much a tensorflow installation can take.

Recently though I did a more thorough analysis of my home folder and noticed that of those 25 GBs in `.julia` it was 16 in the `registries/General` folder, and 15 of those came from the `registries/General/.git` folder.

I deleted the folder and ran an `pkg> up` to make it re-download it and now it is a reasonable size (119MB) again. It also seems like now it is not a cloned repo, but just a folder since it is missing the `.git` subfolder.

I’m not sure if this is just something that went wrong on my system or if there is some underlying issue that might be filling up julia users home folders over time for no good reason?

Thought I would put it up here in case more people had the same problem. An easy way to check the size on a normal linux installation could be to run

```julia
du -sh ~/.julia/registries/General

```

and see if it is multiple GBs in size.

---

<div class="post-metadata">

### Author: ![dlakelan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dlakelan/32/8491_2.png) [@dlakelan](https://discourse.julialang.org/u/dlakelan)
#### Post date: [August 2, 2021, 2:38pm UTC](https://discourse.julialang.org/t/16-gb-large-julia-registries-general-folder/65682/2 "2021-08-02T14:38:55Z")

</div>

I would guess at some point in the past you cloned the registry in git and you’ve been tracking all the changes over the last few years.

Julia 1.7 has a different method of handling the Registry. I suggest once you upgrade to 1.7 series do a `] registry rm General` followed by `registry add General`

---

<div class="post-metadata">

### Author: ![albheim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/albheim/32/34660_2.png) [@albheim](https://discourse.julialang.org/u/albheim)
#### Post date: [August 2, 2021, 2:55pm UTC](https://discourse.julialang.org/t/16-gb-large-julia-registries-general-folder/65682/3 "2021-08-02T14:55:02Z")

</div>

Yeah, I was trying to remember if I ever did anything with the registries cause it seemed a bit weird that it would track it. I can’t remember doing it and can’t understand why I would have manually cloned it, but that might be the more plausible explanation.

I thought maybe that an older version of the package manager cloned it for some reason and this behavior was changed in the newer ones.

---

<div class="post-metadata">

### Author: ![baggepinnen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/baggepinnen/32/693_2.png) [@baggepinnen](https://discourse.julialang.org/u/baggepinnen)
#### Post date: [August 2, 2021, 4:23pm UTC](https://discourse.julialang.org/t/16-gb-large-julia-registries-general-folder/65682/4 "2021-08-02T16:23:35Z")

</div>

You may also try

```julia
pkg> gc

```

To remove versions that are no longer required.

---

<div class="post-metadata">

### Author: ![tbeason](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tbeason/32/15898_2.png) [@tbeason](https://discourse.julialang.org/u/tbeason)
#### Post date: [August 2, 2021, 5:09pm UTC](https://discourse.julialang.org/t/16-gb-large-julia-registries-general-folder/65682/5 "2021-08-02T17:09:08Z")

</div>

I had a similar problem with my `artifacts` folder, but my registry folder is not too large (under 0.5 GB).
