Skip to main content

Delete event

Deletes an event by ID

Function DeleteEvent(Val Token, Val Calendar, Val Event) Export

ParameterCLI optionTypeRequiredDescription
Token--tokenStringToken
Calendar--calendarStringCalendar ID
Event--eventStringEvent ID

Returns: Map Of KeyAndValue - serialized JSON response from Google


1C:Enterprise/OneScript code example
    Token    = "ya29.a0AcM612wmWdggP-K6tOc3UqW0KxYMjUi60_Uhu-ERltTaavHGbML0nRBXqkuiBcr0GNmR_1gHKowaF1Rd_4Q5Amc9O23DEBZ95sNEGnpR5...";
Calendar = "aed9a7a5ff01b42e80462afcfc08037e289b1a4dfb07820f5d4e2885e8ccd68e@group.calendar.google.com";
Event = "hcqslmklah35bb514mtfaf9p50";

Result = OPI_GoogleCalendar.DeleteEvent(Token, Calendar, Event);
    oint gcalendar DeleteEvent \
--token "***" \
--calendar "c341836eae1daa0e494bf49a9dce47af064c9e48f14a7c5c173dd73ac911a621@group.calendar.google.com" \
--event "h0nu19bo5mhbja637v1v4s39sg"
Result
null