splitwise_delete_friend
Delete a Splitwise friend by user id to unfriend them. Writes must be enabled; this action is destructive and cannot be undone.
Instructions
Remove a friendship (unfriend a user). 🔒 Needs SPLITWISE_ALLOW_WRITES=1. Destructive.
Calls POST /delete_friend/{id} with the friend's user id. Splitwise answers HTTP
200 even when it refuses, so the outcome is read from the body's success /
errors. Refused with Error: … writes are disabled unless
SPLITWISE_ALLOW_WRITES=1. There is no undelete for friendships — re-add with
splitwise_create_friend.
When to Use:
The user explicitly asked to remove someone from their friends list.
When NOT to Use:
To remove someone from a group (use
splitwise_remove_user_from_group).To settle a balance (record the repayment as an expense via
splitwise_create_expense).When the id is uncertain — confirm it first with
splitwise_resolve_friendorsplitwise_get_friend.
Returns:
A confirmation with the user id and the body's success value.
Examples:
params = {"friend_id": 4821}
Error Handling:
Error: … writes are disabled → set SPLITWISE_ALLOW_WRITES=1. If Splitwise refuses,
its errors message is returned as Error: Splitwise rejected the request …. 404
means the id is not a friend.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |