delete_transaction
Permanently delete an existing Money Lover transaction after confirming its ID, wallet and date; use dry_run to preview checks without removal.
Instructions
Permanently delete one existing transaction. Use it only when the user asked for the removal in their own words, after identifying the entry with list_transactions (which supplies the id, wallet and date) and confirming it is the right one; dry_run returns the entry without deleting it. To fix a wrong detail use update_transaction instead. Behavior: there is no undo through this server. Transfers, debts, loans and their repayments are refused because they are linked to other transactions; delete those in the Money Lover app. The same limits as add_transaction apply: writes are off unless MONEYLOVER_ALLOW_WRITE=true, the wallet allowlist and hourly write limit, and the transaction's date must be within roughly the last year to a month ahead. A failure reported as UNCERTAIN means the transaction may or may not have been deleted: check list_transactions before retrying.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Id of the transaction, exactly as returned by list_transactions. | |
| date | Yes | The transaction's date as YYYY-MM-DD, exactly as returned by list_transactions. Used to find it. | |
| wallet | Yes | Name of the wallet the transaction is in, exactly as returned by list_transactions. | |
| dry_run | No | If true, find the transaction and run every check, but do not delete it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deleted | Yes | True only if the transaction was really deleted. | |
| dry_run | Yes | True when nothing was sent to Money Lover. | |
| transaction | Yes | The transaction that was (or, for a dry run, would be) deleted. |