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.a0AW4XtxgOTUonqiJAYqYtxcBh8MI1VxhOH0B9hCii3RQaZlp1PVWulwBqV-y7CkKAad7Ofs4NlHXhJ3-Qe1lj4xEd-ubK_QpjEkbdCVoUW...";
Calendar = "55e81a5946198a88ffedb44a63f1500ef90f9463553cb0d15357b3f652c2afb7@group.calendar.google.com";

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