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.a0ARW5m7702-Ib_bOq69krqD5iUx89SC2lxGPxRJoBjqvSBqE7uKghOyAjwrL7ebNf6xqPzwD4wQfZlFvBrb7QsWlw5PGW_SvkFr57Y8Js...";
Calendar = "35e16313ea8eb86838be4408e9ebe8797c14e8b6e54a633ac7580fcbac4a51f6@group.calendar.google.com";
Event = "snknqoec7o4oev9p7eo78nvvvc";

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