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.