Google Calendar — Delete event
Google Calendar — Delete event
Section titled “Google Calendar — Delete event”Type: googlecalendar-delete-event · Package: Google Calendar v1.0.5 · Output: —
Deletes (cancels) an event from a calendar. If the event had guests and you turn on notify, they get the cancellation notice.
How it works
Section titled “How it works”Deletes the event eventId from the calendar calendarId with one call to Google. For a recurring event, the ID of one occurrence (from Get events) deletes only that occurrence.
Deleting an event that was already deleted fails with Gone: if your process may repeat the deletion, wrap it in Try / Catch and treat that case as success.
Required parameters
Section titled “Required parameters”| Parameter | Type | Default | Description |
|---|---|---|---|
eventId | string | — | ID of the event to delete. |
Optional parameters
Section titled “Optional parameters”| Parameter | Type | Default | Description |
|---|---|---|---|
session | ZoanGoogleCalendarSession | — | Session from Google Calendar — Connect. Inside Connect’s body it is inherited and you can leave it empty. |
calendarId | string | primary | Calendar ID (from Get calendars). primary is the account’s main calendar. |
notify | bool | false | Email the guests about the cancellation. |
Output
Section titled “Output”This activity does not return a value.
Common errors
Section titled “Common errors”| Message | Cause and fix |
|---|---|
'eventId' is required. | eventId is empty or its expression returned null. |
No Google Calendar session available. Provide 'session' from a googlecalendar-connect activity, or place this activity inside the Connect activity's body … | The activity is outside Connect’s body and received no session. Move it inside the body or pass the saved session. |
The service calendar has thrown an exception. HttpStatusCode is Gone… | The event was already deleted. |
The service calendar has thrown an exception. HttpStatusCode is … | Google rejected the call: unknown calendar or event, no access, expired token or quota exceeded. See Google API errors. |
Example
Section titled “Example”Google Calendar — Connect credential = credential("calendar-team") └─ body: Google Calendar — Delete event eventId = meetingId notify = trueRelated activities
Section titled “Related activities”- Google Calendar — Get events — find the events to cancel.
- Google Calendar — Update event — reschedule instead of cancelling.
- Google Calendar — Create event — create an event.
- All Google Calendar activities