[Ethereum] How to remove accounts using the Geth console

accountsgo-ethereum

I have several accounts I've created in the Geth console using:

personal.newAccount()

I no longer use (nor have any intention of using) the first couple of accounts I created, meaning whenever I reference an active account I have to set the account array index to something other than 0.

How do I remove the unused accounts so I can just reference my active account using eth.accounts[0]?

Best Answer

You can't remove account. You need to remove them directly from your keystore folder.

IT IS IRREVERSIBLE.

~/Library/Ethereum/keystore

I feel the need to repeat that once the file is deleted it's Game over.

Related Topic