Skip to main content

Function: deleteCheck()

deleteCheck(checkId): Promise<{ error?: string; ok: boolean; }>

Defined in: src/server/actions/checks.ts:409

Admin: delete an UNMATCHED / unreviewed check row (e.g. a junk OCR or a packet page that isn't a check). Confirmed checks are blocked — they have applied payments that advanced invoice balances, so deleting would corrupt the books. The stored file is left in place (other rows may reference it).

Parameters​

checkId​

string

Returns​

Promise<{ error?: string; ok: boolean; }>