How to remove the previous BlockChain data?

0 votes
I am learning to develop chaincode and when testing it, when i killed the peer and restarted the blockchain, the blockchain did not start. I thought this could be because there already exists data about previous blockchain. Am i right? How to remove blockchain data?
Jul 3, 2018 in Blockchain by slayer
• 29,050 points
28 views

1 answer to this question.

0 votes
Best answer

One of the reasons preventing the blockchain to restart could be the previous blockchain data. The blockchain data is stored in the /var/hyperledger/production/db folder. Delete the file and try restarting the blockchain. 

answered Jul 3, 2018 by Omkar
• 67,120 points

selected Jul 3, 2018 by slayer

Related Questions In Blockchain

0 votes
1 answer

How to explore and analyze the data inside a Hyperledger Blockchain network?

In Hyperledger Composer, you have all the ...READ MORE

answered Aug 10, 2018 in Blockchain by Christine
• 15,790 points
70 views
+1 vote
3 answers

Is it possible to store data about arbitrary objects on the blockchain using smart contracts?

Consider following tutorial from Hyperledger Fabric "Getting Started" pages. Basically ...READ MORE

answered Aug 30, 2018 in Blockchain by Artem
89 views
0 votes
1 answer

In a Blockchain, how difficult is it to modify the third to last block?

Technically, it's not difficult at all, all ...READ MORE

answered Apr 20, 2018 in Blockchain by Christine
• 15,790 points
51 views
+1 vote
1 answer

How to store state data in Ethereum blockchain?

You won't have to overwrite the whole ...READ MORE

answered Apr 24, 2018 in Blockchain by Shashank
• 10,330 points
43 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
104 views
0 votes
1 answer
+1 vote
1 answer

Language in which cryptokitties is programmed?

Cryptokitties is built on the Ethereum network. The ...READ MORE

answered Mar 26, 2018 in Blockchain by Johnathon
• 9,070 points
17 views
0 votes
1 answer

How to set the hex-encoded data field in a Web3j Ethereum transaction?

You can use the "data" field of ...READ MORE

answered Oct 15, 2018 in Blockchain by Omkar
• 67,120 points
107 views
+1 vote
4 answers

How to estimate the cost for deploying smart contract on mainnet?

Since you have already deployed the contract ...READ MORE

answered Apr 9, 2018 in Blockchain by Shashank
• 10,330 points
1,183 views