Delete transaction
moneylover_delete_transactionPermanently delete a confirmed existing transaction using its id, wallet, and date; preview with dry_run first, and use the update action instead to correct details.
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 moneylover_list_transactions (which supplies the id, wallet and date) and showing it to the user to confirm; dry_run returns that entry without deleting it. To fix a wrong detail use moneylover_update_transaction instead. Behavior: there is no undo through this server. id, wallet and date must come from the same moneylover_list_transactions row: Money Lover cannot look up by id alone, so the wallet is searched one day either side of date, and a mismatch reports the transaction as not found. 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 moneylover_add_transaction apply: writes are off unless MONEYLOVER_ALLOW_WRITE=true, the wallet allowlist and hourly write limit, and the transaction's date must fall within 366 days back to 31 days ahead. A failure reported as UNCERTAIN means the transaction may or may not have been deleted: check moneylover_list_transactions before retrying.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Id of the transaction, exactly as returned by moneylover_list_transactions. | |
| date | Yes | The transaction's date as YYYY-MM-DD, exactly as returned by moneylover_list_transactions. Used to find it. | |
| wallet | Yes | Name of the wallet the transaction is in, exactly as returned by moneylover_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. |