Delete all the categories

Asked by nomnex

The more I use the application the more the "categories" replace the "accounts" (in the GnuCash way: One account per type of transaction) My categories list is becoming the core to filter the transactions and to use the reports. I end up with one single cash account for most of the transactions, and an extended categories/sub-categories list for each type of transactions.

Question/feature request: How can I delete in one swoop all or part of the categories list in the GUI (Ctrl+A+Del or Shift+Click+Del). In HomeBank 4.1, I can only delete one category at a time from the GUI. To remove all the categories I edit the .xhb file and delete the "<cat key= ...>" fields. It's a all or nothing solution since I know little about .xml tags.

Sample:
<?xml version="1.0"?>
<homebank v="0.40000000000000002">
<properties title="(Nobody)" car_category="0" auto_nbdays="0"/>
<account key="1" flags="0" pos="1" type="0" name="(account 1)" number="" bankname="" initial="0" minimum="0" cheque1="0" cheque2="0"/>
-------Delete------------
<cat key="2" parent="0" flags="0" name="adfasdfsdf"/>
<cat key="3" parent="2" flags="1" name="adfasfa"/>
<cat key="1" parent="0" flags="0" name="afsdfasfa"/>
-------Delete-------------
</homebank>

Thanks

Question information

Language:
English Edit question
Status:
Answered
For:
HomeBank Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Maxime DOYEN (mdoyen) said :
#1

I personally never understand the way gnucash work in that manner. To me it does not reflect the reality, but everyone is free in is use of HomeBank of course !
Categories cannot be deleted in mass because it's not a really normal usage !

Adding to this, it's a very bad idea to edit the xhb file by hand, when you delete the categories recorded, transaction still have a link to the category id (but I think have coded the things right and that no problem will occurs) but data still corrupted.

Feel free to add a blueprint for this.

Revision history for this message
nomnex (nomnex) said :
#2

> Categories cannot be deleted in mass because it's not a really normal usage !

What is the normal usage? When I start, I use few basic categories. Along the time the list increases (especially the sub-categories). The option to delete part or all of them, when I need to re-arrange the list, instead of one by one, would be a time saver.

> Adding to this, it's a very bad idea to edit the xhb file by hand, when you delete the categories recorded, transaction still have a link to the category id

That's right, this is not a good idea.

> Feel free to add a blueprint for this

Will do

Can you help with this problem?

Provide an answer of your own, or ask nomnex for more information if necessary.

To post a message you must log in.