Skip to main content

Delete calendar

Deletes a calendar by ID

Function DeleteCalendar(Val Token, Val Calendar) Export

ParameterCLI optionTypeRequiredDescription
Token--tokenStringToken
Calendar--calendarStringCalendar 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";

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