Preview deleting a calendar sync
preview_delete_syncShows what deleting one of the user's own syncs would do, without deleting anything: which calendars it connects and exactly how many copies it has written that would be removed from the target calendar(s). Tell the user this in plain words and ask them to confirm. It returns a confirmation_token, valid for 10 minutes and only for this sync, which delete_sync requires.
Only syncs whose target calendars are released for syncs (sync_target) can be deleted here; a sync with another person is managed in the app. Use a ref from a current list_syncs result. 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>"
},
"name": "preview_delete_sync"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | A ref from a current list_syncs result, e.g. sync_2 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sync | Yes | ||
| expires_at | Yes | ||
| copies_to_remove | Yes | ||
| confirmation_token | Yes |