How do you delete an account in Bitcoin Core? I am attempting to allow multiple bitcoin addresses to be created per account, but how can I delete them using the standard API? There doesn't seem to be a function for that.

E.g. the acccount "Test" :

Array (
[0] =&gt; 1JQQXBRrG5h7uW8StVtJRcGEdb4YYTqnas
[1] =&gt; 1LP8VeKDNKAgErCnYVAFvGMnrGbM3oHe6u
[2] =&gt; 1LwTx3a7hy4FZ5EJMxcPnRG9ap8AUwd2cm
[3] =&gt; 1AtbnW8dPuzp6jVnAvipiJR4o1BupCcU8D
[4] =&gt; 1K7FyNgmJ4ryjKgNz9ybxzQcYrGDEbYEUX
[5] =&gt; 1Ng77Nq1SF46MDZnz4pEirCEbbiHZ1Wthp
[6] =&gt; 175FKAiJSC9wA12BPcYZD6drTYLxXXChdZ
)


What if the user just wants to delete 1JQQXBRrG5h7uW8StVtJRcGEdb4YYTqnas?

Cheers!
bitcoind does not allow you to delete addresses. (If it did, the next question people would ask is, "How do I undelete addresses?" :))

However, you can use the rpc call setaccount to change the account associated with the address. The first argument to setaccount should the the address you're changing; the second shound be the account you're moving it to. (If you want to move it to the default account, put "" as the second argument.)

Note that this does not change the balance of the account; balances are tracked internally. If you want to keep this consistent, run getreceivedbyaddress, then move that balance to the new account.

You can also use PyWallet to delete addresses permanently. Use the --multidelete option, and pass it a path to a file. That file should contain key as the first line, followed by each address you want to delete, each on a new line.