Delete bank movements
delete_bank_transactionsMove imported bank movements to the trash (recoverable for 30 days with restore_bank_trash). Select by ids, by a date range of the movements (desde/hasta) or by import day (importado_el), combinable. Movements linked to an invoice, expense or payment are never deleted and are reported as protegidos. Call first WITHOUT confirm to get the count, tell the user, and only call again with confirm=true after the user agreed. Without confirm, returns how many movements would be deleted and how many are protected; with confirm=true, returns how many were actually moved to the trash and the lote id to restore them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | ||
| desde | No | YYYY-MM-DD, first movement date to include | |
| hasta | No | YYYY-MM-DD, last movement date to include | |
| confirm | No | ||
| importado_el | No | YYYY-MM-DD, the import day from list_bank_imports |