<p>You can garbage collect nix store with nix-collect-garbage tool. This is useful if you have multiple versions in the nix store to get rid of older ones.</p>

CC BY-SA 4.0
2022-03-14T15:10:21.317Z
Thank you for answering. I only have one version of nix installed and used. Can the garbage tool be of any use then?
George
CC BY-SA 4.0
2022-03-14T03:26:47.350Z
2022-03-14T03:26:47.350Z
Samuel Leathers
<p>No, the Nix database is required as long as you are using Nix.</p>
<p>At chain tip, the PostgreSQL database will take over 100G.</p>

CC BY-SA 4.0
2022-03-14T02:20:43.440Z
2022-03-14T02:20:43.440Z
Erik de Castro Lopo
<p>I have installed via <strong>Nix</strong> a cardano <code>node</code>, <code>DB-sync</code> and <code>Postgres</code> on a single server. <br>
My plan is to pass my Postgres data into an Apache Kafka cluster. <br></p>
<p>My node is synced to tip and DB-sync is on epoch 264.
So far they have taken in total 93 GB of disk space.<br>
I searched for what is taking the most space and I found out that the node &amp; DB-sync are only taking 44 GB, while the Postgres database 15 GB. On the other hand the nix folder alone is taking 29 GB.<br></p>
<p>My question is, is it possible to uninstall/delete nix to save space or will the whole installation collapse?</p>
<p>Thank you for your answer!</p>

<cardano-node><cardano-db-sync><nix>
Uninstalling Nix after Node, Db-sync & Postgres Installation
# Uninstalling Nix after Node, Db-sync & Postgres Installation

(Asked by: username_0 on 2022-03-14)

I have installed via **Nix** a cardano `node`, `DB-sync` and `Postgres` on a single server.   
My plan is to pass my Postgres data into an Apache Kafka cluster.

My node is synced to tip and DB-sync is on epoch 264.
So far they have taken in total 93 GB of disk space.  
I searched for what is taking the most space and I found out that the node & DB-sync are only taking 44 GB, while the Postgres database 15 GB. On the other hand the nix folder alone is taking 29 GB.

My question is, is it possible to uninstall/delete nix to save space or will the whole installation collapse?

Thank you for your answer!

**Tags:** cardano-node, cardano-db-sync, nix

---

## 2 answers

### Answer by username_1 on 2022-03-14. Score: 1

You can garbage collect nix store with nix-collect-garbage tool. This is useful if you have multiple versions in the nix store to get rid of older ones.

> **Comments:**
> **username_0**: Thank you for answering. I only have one version of nix installed and used. Can the garbage tool be of any use then?  

---

### Answer by username_2 on 2022-03-14. Score: 0

No, the Nix database is required as long as you are using Nix.

At chain tip, the PostgreSQL database will take over 100G.


---

