I'm messing around with contracts on my own private network with the command:
geth --dev console
If I want to start from a clean environment (i.e. delete all accounts on the private netowrk), how do I clear the cache?
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.Sign up to join this community
You can specify the directory which contains chaindata and keystore ... Use the --datadir "path/to/mydir" with geth. To clear just remove this directory.
geth --datadir ~/myprivateblockchain init my_genesis.json geth --datadir ~/myprivateblockchain account new geth --dev --datadir ~/myprivateblockchain console
rm -rf ~/myprivateblockchain
You could use this python script to create & manage private blockchain: https://github.com/regispietra/CreatePrivateEthereum