Skip to main content

Remove calendar from list

Removes a calendar from the user's list

Function DeleteCalendarFromList(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.a0ATi6K2tVhkOEu91I_FKDEZ7_olNcPRKrwKbGh7GiFIzwDZjaTNm46ErGj-Lju2am1aAUurgQyVnv0f3G4L7keHSXYNhuCPGvTvzjRdPQJNz_0LzKWjviK54u4...";
Calendar = "27c0997a94ab1fa7a33cc8e22f5286319a5d71143235f31fcce71adf79941e8a@group.calendar.google.com";

Result = OPI_GoogleCalendar.DeleteCalendarFromList(Token, Calendar);
    oint gcalendar DeleteCalendarFromList \
--token "***" \
--calendar "58434dac63f178941271c6f64ea729cfdd7865c8c40d3232bdfbcdca5b1b7178@group.calendar.google.com"
Result
{}