Removing an account
It seems that the OACT object's Remove method is documented as 'not supported'.
Is there any other way I can remove an account? it is supported via GUI.
David Nussböck replied
it's like you said - in GUI it is allowed but DIAPI not.
that means you can try to write a code that deletes a account via UIAPI.
in your addon do the following
1. open Edit Chart of Accounts - select the criteria press OK
2. search your account in the list and use Application.ActivateMenuItem("5910") to delete the account
3. close the window