Remove Calendar Event
ha_config_remove_calendar_eventDelete a calendar event by its UID, with optional support for recurring events and specifying recurrence range.
Instructions
Delete an event from a calendar.
Deletes a calendar event via the WebSocket calendar/event/delete
command. HA's calendar component only registers create_event and
get_events as REST services — delete and update live on the
WebSocket API only.
Parameters:
entity_id: Calendar entity ID (e.g., 'calendar.family')
uid: Unique identifier of the event to delete
recurrence_id: Optional recurrence ID for recurring events
recurrence_range: Optional recurrence range ('THIS_AND_FUTURE' to delete this and future occurrences)
Example Usage:
# Delete a single event
result = ha_config_remove_calendar_event(
"calendar.family",
uid="event-12345"
)
# Delete a recurring event instance and future occurrences
result = ha_config_remove_calendar_event(
"calendar.work",
uid="recurring-event-67890",
recurrence_id="20240115T100000",
recurrence_range="THIS_AND_FUTURE"
)Note: To get the event UID, first use ha_config_get_calendar_events() to list events. The UID is returned in each event's data.
Returns:
Success status and deletion confirmation
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | Unique identifier of the event to delete | |
| entity_id | Yes | Calendar entity ID (e.g., 'calendar.family') | |
| recurrence_id | No | Optional recurrence ID for recurring events | |
| recurrence_range | No | Optional recurrence range ('THIS_AND_FUTURE' to delete this and future occurrences) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||