Delete an empty calendar
mailbox_delete_calendarDelete a calendar from a mailbox using its ID and latest ETag. Fails with a 409 conflict if the calendar still contains events.
Instructions
Requires calendar.write. Fetch the calendar and pass its ETag in If-Match. A calendar containing events returns 409 conflict.
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": {
"calendar_id": "<calendar_id>",
"If-Match": "<If-Match>"
},
"name": "mailbox_delete_calendar"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| If-Match | Yes | ETag from the most recent calendar GET. Wildcards are rejected. | |
| mailbox_id | No | Mailbox public ID to target when the credential grants access to more than one mailbox. Omit when the credential is scoped to exactly one mailbox. | |
| calendar_id | Yes | Calendar ID in the selected mailbox. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |