delete_event
Delete a calendar event by UID, or remove a single occurrence of a recurring event using EXDATE; preview changes with dry-run and write a copy unless in-place editing is enabled.
Instructions
Delete an event by UID (a recurring event with all its modified instances), or just one occurrence of a recurring event: pass occurrence='2026-03-09T09:00' (its start, read in tz; or a date for all-day) and an EXDATE is added instead.
SAFETY: the original file is never modified unless in_place=true. By default the edited copy is written next to it as '.new' (or output_file, which must not exist yet). dry_run=true writes nothing and just shows the patch. Everything else in the file - other events, VTIMEZONE blocks, unknown properties - is kept byte for byte.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tz | No | UTC | |
| dry_run | No | ||
| calendar | No | ||
| in_place | No | ||
| event_uid | Yes | ||
| occurrence | No | ||
| output_file | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |