Delete an archived bank statement
Requires manage:bank_accounts — the same scope upload requires.
Removes the statement’s staged AI-extraction rows
(bank_statement_entries) and purges the archived file along with
it. Transactions already booked from this statement are untouched:
the entry→transaction link is a foreign key on the entry pointing at
the transaction, so deleting entries never reaches into accounting
data.
Intended for a statement that duplicates ones already imported — typically a whole-year PDF that overlaps twelve monthly uploads — where the staged rows are redundant or informational-only and importing them would misbook or duplicate transactions. Deletion is permanent; there is no undo.
Authentication
JWT issued via POST /api/v1/auth/sign_in. Used by mobile and SPA clients. Revoked tokens are rejected.
Lucanto API key. Two prefixes:
lct_pat_<random><checksum>— personal access token (owner: User)lct_live_<random><checksum>— workspace token, live data
Issue keys at /settings/api_keys (personal) or
/:workspace_id/settings/api_keys (workspace). Plaintext token is
shown once and never again.
Path parameters
Bank statement ID. Either the numeric id or the public_id (bst_…).
