<p>If you have turned off <code>-txindex</code> (which should have happened when you enabled pruning), then you can just delete the the <code>indexes/txindex</code> folder as it isn't being used.</p>

CC BY-SA 4.0
2018-11-24T18:10:47.473Z
2018-11-24T18:10:47.473Z
Ava Chow
<p>In <code>~/.bitcoin/bitcoin.conf</code> I set <code>prune=5000</code>.</p>

<p>That reduced the blockchain size to 5G.</p>

<pre><code>du -sch /mnt/btrfs/bitcoind/*
...
5.0G   /mnt/btrfs/bitcoind/blocks
2.8G   /mnt/btrfs/bitcoind/chainstate
17G    /mnt/btrfs/bitcoind/indexes
....
25G    total
</code></pre>

<p>This is indeed a x10 improvement, before pruning, my bitcoind data directory was roughly 250G. Yet, it's still 25G total. I need to run on a small SD card where there is only 10G of free space.</p>

<p>Now <code>/mnt/btrfs/bitcoind/indexes/txindex/*.ldb</code> files take up the majority of space, 17G.</p>

<p>Is there a way to prune the txindex/*.ldb files?</p>

<txindex>
How to prune bitocoind indexes/txindex?
Aleksandr Levchuk
# How to prune bitocoind indexes/txindex?

(Asked by: username_0 on 2018-11-24)

In `~/.bitcoin/bitcoin.conf` I set `prune=5000`.

That reduced the blockchain size to 5G.

```
du -sch /mnt/btrfs/bitcoind/*
...
5.0G   /mnt/btrfs/bitcoind/blocks
2.8G   /mnt/btrfs/bitcoind/chainstate
17G    /mnt/btrfs/bitcoind/indexes
....
25G    total

```

This is indeed a x10 improvement, before pruning, my bitcoind data directory was roughly 250G. Yet, it's still 25G total. I need to run on a small SD card where there is only 10G of free space.

Now `/mnt/btrfs/bitcoind/indexes/txindex/*.ldb` files take up the majority of space, 17G.

Is there a way to prune the txindex/\*.ldb files?

**Tags:** txindex


---

## 1 answers

### Answer by username_1 on 2018-11-24. Score: 3

If you have turned off `-txindex` (which should have happened when you enabled pruning), then you can just delete the the `indexes/txindex` folder as it isn't being used.


---

