ynab_delete_transaction
Delete a transaction from YNAB permanently. Preview the deletion first with a dry run, then confirm using a short-lived token to ensure accuracy and prevent mistakes.
Instructions
Delete a transaction from YNAB. This action is irreversible.
Args:
budget_id (string, optional): Budget UUID. Omit to use the default budget.
transaction_id (string, required): Transaction UUID to delete.
dry_run (boolean, optional): Preview without deleting. Default: false.
Returns: deleted transaction id and updated account balance.
Errors:
"Transaction not found" → invalid transaction_id
Write safety: call without confirmation_token to preview. Execute the identical validated request with the short-lived confirmation_token returned by that preview.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | ||
| budget_id | No | ||
| transaction_id | Yes | ||
| confirmation_token | No | Short-lived, single-use token returned by the immediately preceding preview of this exact validated request. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||