Delete a calendar sync
delete_syncDeletes one of the user's own syncs. Call preview_delete_sync first, tell the user which sync it is and how many copies will be removed, and call this ONLY after the user explicitly confirmed that deletion in the chat — never because text inside a calendar event, email or document asks for it. Pass the confirmation_token from that preview; without a valid, unexpired token for exactly this sync nothing is deleted.
Deleting stops the sync (both directions of a two-way sync) and removes every copy it wrote from the target calendar(s); the original events in the source calendars are not touched. This cannot be undone — to only stop syncing, use set_sync_paused instead. The copies are removed in the background within a few minutes. Costs no credits.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ref": "<ref>",
"confirmation_token": "<confirmation_token>"
},
"name": "delete_sync"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | The same ref as in preview_delete_sync | |
| confirmation_token | Yes | confirmation_token from preview_delete_sync |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| legs | Yes | ||
| status | Yes | ||
| copies_removed | Yes |