I would like to delete the old blocks when the memory is full in blocks. I understand that there will be loss of some data due to the deleting the blocks. But I think it would not change the structure of the blockchain.

I want to know how to implement it. I am using go-ethereum.

1 Answer 1


In blockchain there is now way of deleting the old blocks. The only suggested way is to increase the memory of the hard disk.

So when you develop the blockchain based application you should consider some architecture which will help to to store less memory in blockchain.

History of the blocks are the core logic behind the blockchain.

  • but deletng the first few blocks and changing the genesis block would still retain the basic blockchain structure, right?
    – spharish
    May 1, 2017 at 5:36
  • 1
    No it will not. If any block is deleted subsequent blocks will become invalid, because every next block is linked with previous block's hash value. May 1, 2017 at 5:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.