Is there a way to delete a ledger ?
Last updated: April 2, 2025
Like transactions, a ledger can not be deleted.
Though It's not possible to delete a Ledger / Bucket from the API.
It is although possible to do so in the DB directly:
you need to Drop the schema
Delete the line in the
_systemschema.
(Be aware of the risks of doing such manipulation on the database directly.)We are currently working on a flow to allow this.
Tips for integration testing: create ledgers in dedicated buckets for each test (randomly), and drop the full database at the end.