How do I remove an ibkr account

QR is refusing to generate orders because it says my account is over the limit. I added some additional accounts while experimenting with multiple ibkr gateways, but now even with the additional gateways turned off, my account balance is being reported as over $1M and QR is refusing to operate.

There appears to be no command to remove an interactive brokers account from the accounting database so that it doesn't get added to the total AUM.

This is a total blocker.

Solving my own issue, recording for posterity: manually delete the accounts from the account DB:

docker exec quantrocket-account-1 sqlite3 /var/lib/quantrocket/quantrocket.v2.account.balance.sqlite 'DELETE FROM Balance WHERE Account="<account id>"'
docker exec quantrocket-account-1 sqlite3 /var/lib/quantrocket/quantrocket.v2.account.balance.sqlite 'DELETE FROM LatestBalance WHERE Account="<account id>"'

(or do the same thing from the jupyter terminal).

Now the license says it's under limit.