Skip to main content
DELETE
/
v0
/
bulk
/
ledgers
Delete multiple ledgers in bulk
curl --request DELETE \
  --url https://api.sandbox.teal.dev/v0/bulk/ledgers \
  --header 'Authorization: Bearer <token>' \
  --header 'teal-instance-id: <teal-instance-id>'
[
  {
    "success": true,
    "error": "<string>"
  }
]

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

teal-instance-id
string
required

The Teal instance ID

Query Parameters

ledger_ids
string[]
required

A comma separated list of ledger IDs.

delete_journal_entries
boolean
default:false

Whether to delete journal entries associated with these ledgers. When true, deletes all journal entries containing line entries on these ledgers, along with reconciliations and source accounts (if not linked to Plaid)This operation is irreversible.

Response

Successful Response

success
boolean
required

Whether the ledger deletion was successful.

error
string | null

The error message if deletion failed