splitwise_delete_expense
Delete a duplicate or mistaken Splitwise expense by ID. The expense is kept as deleted so it can be restored, and all participants' balances update accordingly.
Instructions
Delete an expense (Splitwise keeps it as deleted; restore with splitwise_undelete_expense).
Calls POST /delete_expense/{id}. Refused with Error: … writes are disabled unless
SPLITWISE_ALLOW_WRITES=1 (enforced by the server's client). Deleting changes every
participant's balances. Restore with splitwise_undelete_expense and the same id.
When to Use:
Remove a duplicate or mistaken expense.
When NOT to Use:
To fix an amount or split (use
splitwise_update_expense).To remove a whole group with its expenses (use
splitwise_delete_group).
Returns:
The success value Splitwise returned for the deletion, and the undo hint.
Examples:
params = {"expense_id": 3456789012}
Error Handling:
Splitwise answers 200 even when it refuses — the client turns success: false / a
non-empty errors into Error: Splitwise rejected the request…. 404 → wrong id; 403 →
not your expense.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |