Accounting
Delete a chart account
Permanently deletes a chart account with no journal lines. A linked bank register must be empty (no bank transactions, statements, reconciliations, or live feed); removeEmptyRegister=true deletes it with the account, otherwise 409 code linked_register_empty. Registers with activity return 409 linked_register_has_activity; merge them instead. dryRun=true returns the account and register that would be deleted without saving.
delete/accounts/{accountId}
Request
- Base URL: https://ledgerhq.pro/api/v1
- URL: https://ledgerhq.pro/api/v1/accounts/{accountId}
- Auth: one of:
- HTTP bearer and API key in header x-organization-id
- HTTP bearer and API key in header x-organization-id
Path parameters
accountIdstring uuid required
Chart account UUID
Query parameters
dryRunboolean
removeEmptyRegisterboolean
Response
Deleted, or the dry-run plan: account, register (or null), deleted
Changes
No recorded changes to this operation across all 5 revisions of this API.