Delete transaction
delete_transactionRemoves a specified transaction from a YNAB budget by ID, requiring user confirmation before deletion to prevent accidental data loss.
Instructions
Delete a transaction. Confirm with the user before deleting.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| transaction_id | Yes | Transaction to delete (required) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Unique transaction identifier | |
| date | Yes | Transaction date | |
| flag | No | Flag as 'Name (Color)' format | |
| memo | No | User-entered memo | |
| amount | Yes | Amount in currency units (negative = spending, positive = income) | |
| cleared | Yes | Cleared status: 'cleared', 'uncleared', or 'reconciled' | |
| approved | Yes | Whether the transaction is approved | |
| payee_id | No | Payee ID | |
| account_id | Yes | Account ID | |
| payee_name | No | Payee name | |
| category_id | No | Category ID | |
| account_name | No | Account name | |
| category_name | No | Category name | |
| subtransactions | No | The parts of a split transaction | |
| transfer_account_id | No | For a transfer, the other account | |
| parent_transaction_id | No | Parent transaction ID if this is a part of a split | |
| import_payee_name_original | No | For an imported transaction, the payee exactly as the bank wrote it. Useful for working out the real payee and category. |