When deleting an account using the deleteaccount command a "true" result is returned. After that, when querying the accounts using the listaccounts command the account is listed with [Deleted] appended to its name field. However this is indistinguishable from an account with a name that actually ends with "[Deleted]". Is there any other way to only list only the really active accounts?
There is currently no way to obtain this information via RPC, however the wallet does store this information internally, so it is available to internal code. i.e. Simply adding [Deleted] to the name will not make the wallet treat the account as deleted. https://github.com/Gulden/gulden-official/blob/master/src/account.h#L39
The listaccounts RPC command should definitely be extended to make this information accessible.