Skip to content

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.

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.

ParameterTypeDefaultDescription
eventIdstring—ID of the event to delete.
ParameterTypeDefaultDescription
sessionZoanGoogleCalendarSession—Session from Google Calendar — Connect. Inside Connect’s body it is inherited and you can leave it empty.
calendarIdstringprimaryCalendar ID (from Get calendars). primary is the account’s main calendar.
notifyboolfalseEmail the guests about the cancellation.

This activity does not return a value.

MessageCause 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.
Google Calendar — Connect credential = credential("calendar-team")
└─ body:
Google Calendar — Delete event eventId = meetingId notify = true