Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: c_anderson on February 24, 2011, 11:52:08 PM



Title: Command to remove unwanted accounts
Post by: c_anderson on February 24, 2011, 11:52:08 PM
bitcoind listaccounts currently shows five accounts, only one of which is being used. What's the command to delete empty accounts, or at least remove them from my wallet?


Title: Re: Command to remove unwanted accounts
Post by: Binford 6100 on February 25, 2011, 12:13:32 AM
bitcoind listaccounts currently shows five accounts, only one of which is being used. What's the command to delete empty accounts, or at least remove them from my wallet?

not implemented yet.

there are some unofficial tools that let you make surgery to your wallet but the official app does not remove or hide them from the gui.


Title: Re: Command to remove unwanted accounts
Post by: Gavin Andresen on February 25, 2011, 07:59:29 PM
Yes, not implemented yet.  Do you want to remove them just so the listaccounts output isn't messy, or is the lack of a deleteaccount API call preventing you from doing something you need to do?


Title: Re: Command to remove unwanted accounts
Post by: c_anderson on February 25, 2011, 11:37:08 PM
Yes. I'm just OCD, and would like to be able to remove "temp" and "test" and "" so I don't see them.


Title: Re: Command to remove unwanted accounts
Post by: Alex Beckenham on April 01, 2011, 07:55:23 AM
Also, if they still can't be removed yet, can they be renamed?


Title: Re: Command to remove unwanted accounts
Post by: tytus on July 25, 2012, 06:11:31 PM
Any updates on this issue ?


Title: Re: Command to remove unwanted accounts
Post by: Pieter Wuille on August 05, 2012, 10:44:01 AM
I believe a relatively easy solution would be allowing to delete an address, but not deleting its key (so that it becomes identical to a change address).


Title: Re: Command to remove unwanted accounts
Post by: leckey on March 28, 2014, 02:03:50 PM
*bump* any update on this?


Title: Re: Command to remove unwanted accounts
Post by: 2112 on March 28, 2014, 06:39:24 PM
*bump* any update on this?
For the truly OCD people there are two choices that are much simpler than modifying the bitcoin client:

1) write a C/C++ wallet cleaner utility using the matching Berkeley_DB libraries
2) do db_backup/clean/db_restore using Berkeley_DB utilities. The backup format is textual and the wallet database structure is very simple, so the "clean" step can be written in any of the widely known text processing languages like awk or Perl.

Remember that when using Berkeley_DB utilities you may need to create an appropriate DB_CONFIG file to be really on the safe side. This was discussed before on this forum.


Title: Re: Command to remove unwanted accounts
Post by: leckey on March 28, 2014, 06:55:58 PM
*bump* any update on this?
For the truly OCD people there are two choices that are much simpler than modifying the bitcoin client:

1) write a C/C++ wallet cleaner utility using the matching Berkeley_DB libraries
2) do db_backup/clean/db_restore using Berkeley_DB utilities. The backup format is textual and the wallet database structure is very simple, so the "clean" step can be written in any of the widely known text processing languages like awk or Perl.

Remember that when using Berkeley_DB utilities you may need to create an appropriate DB_CONFIG file to be really on the safe side. This was discussed before on this forum.

I think I'll opt to just stay mildly irritated by the rogue account, rather than risk breaking everything! Thanks though


Title: Re: Command to remove unwanted accounts
Post by: Suzuki on March 30, 2014, 04:32:50 PM
In my opinion there is no need to delete empty accounts.