Delete event
Deletes an event by ID
- Parameters
- Advanced call ?
Function DeleteEvent(Val Token, Val Calendar, Val Event) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Token | --token | String | ✔ | Token |
| Calendar | --calendar | String | ✔ | Calendar ID |
| Event | --event | String | ✔ | Event ID |
Returns
Map Of KeyAndValue - serialized JSON response from Google
| Parameter | Description |
|---|---|
| proxy | InternetProxy or a structure with fields Protocol, Host, Port, User, Password, UseOSAuthentication |
| timeout | Request execution timeout |
| adv_response | Formats the response as a complete HTTP structure with fields code, body, and headers |
| retries | Number of HTTP request send attempts on 5** status codes or internal client errors |
| dontwait | Creates a background job and returns its data (for 1C and OneScript only) |
1C:Enterprise/OneScript code example
Token = "ya29.a0ATi6K2sWW_31WLH0d9aK0qk0HJ-UfyvZDcLeBbF5bLU7QH09Bx2pXAupIw40USQVaxXqsovItVSt9swWuPdBDSA0eFaVPE0CbaU2OLQlyrnITI1VVXgZ_Gx2R...";
Calendar = "f70efec034ef36b040f12b5d8938e54fc399d73cd37b8e765bdd86ebc4a67e4a@group.calendar.google.com";
Event = "l6kkhcjgt4n0a3qdonan09tv30";
Result = OPI_GoogleCalendar.DeleteEvent(Token, Calendar, Event);
- Bash
- CMD/Bat
oint gcalendar DeleteEvent \
--token "***" \
--calendar "2e2a088af05c1d88f3793172eae35d956b6303f5c1504210c14594fd60e13212@group.calendar.google.com" \
--event "1fbgednhburavkoh3qor3mi30c"
oint gcalendar DeleteEvent ^
--token "***" ^
--calendar "2e2a088af05c1d88f3793172eae35d956b6303f5c1504210c14594fd60e13212@group.calendar.google.com" ^
--event "1fbgednhburavkoh3qor3mi30c"
Result
{}