How to prune Geth?

Hello Clem,
I haven’t tested this myself yet. I grabbed this from the discord channel.

Set a fallback ETH1 node like Infura (because your Geth node will be offline while pruning) then go to the Geth package, Config tab and set the EXTRA_OPTIONS field to snapshot prune-state and click update, when it restarts Geth it will prune the DB. When done copy back the default --http.api eth,net,web3,txpool settings again and restart. Warning though if the pruning doesn’t work for some reason you will likely need to do a full re-sync from scratch so be prepared for that as a worst case scenario.

1 Like