How can I delete multiple transactions in a batch in GnuCash?

My specific use-case is that I am treating each year as a standalone gnucash file. I start with a copy of the previous year and import the current year transactions into it in order to benefit from trained Bayesian automatic transaction mapping during import. After importing the current year data, I then wish to delete the previous year's data.

As a workaround I made a shortcut key for deleting transactions. I modified the C:\Users\username\.gnu-cash\accelerator-map file (with gnucash closed) by changing the line

; (gtk_accel_path "<Actions>/GncPluginPageRegisterActions/DeleteTransactionAction" "")

To:

(gtk_accel_path "<Actions>/GncPluginPageRegisterActions/DeleteTransactionAction"
"<Primary>Delete")

Now I could delete transactions by pressing ctrl+delete. Pressing and holding this key combination allowed continuous deleting at a predictable rate so it was quite easy to delete a few hundred transactions quickly.

Might not be the best solution if you have many thousands of transactions that you want to delete but for a few hundred it was quite painless.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.