Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Blockchain by (4.1k points)

I was using this chaincode development guide to develop some chaincode and test it.

After killing the peer used to test the chaincode and restarting it the BlockChain did not restart (all the block were still there).

How do I remove the previous BlockChain data?

1 Answer

0 votes
by (14.4k points)
edited by

Data from a blockchain is basically stored in the following location: 

/var/hyperledger/production/db

Remove the contents of this storage location to be able to create a new blockchain. 

Give yourself time to explore this field properly. Enroll in Blockchain Online Training now.

Browse Categories

...