2024-06-05 10:19:46 +00:00
|
|
|
---
|
|
|
|
sidebar_position: 4
|
|
|
|
---
|
|
|
|
|
|
|
|
# Clear primary calendar
|
|
|
|
Clears the event list of the primary calendar
|
|
|
|
|
|
|
|
|
2024-07-10 11:59:55 +03:00
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
2024-07-10 13:58:29 +03:00
|
|
|
`Function ClearMainCalendar(Val Token) Export`
|
2024-06-05 10:19:46 +00:00
|
|
|
|
|
|
|
| Parameter | CLI option | Type | Destination |
|
|
|
|
|-|-|-|-|
|
|
|
|
| Token | --token | String | Token |
|
|
|
|
|
|
|
|
|
2024-06-06 15:33:52 +03:00
|
|
|
Returns: Map Of KeyAndValue - serialized JSON response from Google
|
2024-06-05 10:19:46 +00:00
|
|
|
|
2024-07-10 11:59:55 +03:00
|
|
|
|
2024-07-10 13:58:29 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-05 10:19:46 +00:00
|
|
|
```bsl title="Code example"
|
|
|
|
|
|
|
|
Response = OPI_GoogleCalendar.ClearMainCalendar(Token);
|
|
|
|
|
|
|
|
```
|
2024-07-10 11:59:55 +03:00
|
|
|
|
|
|
|
|
2024-06-05 10:19:46 +00:00
|
|
|
|
|
|
|
```sh title="CLI command example"
|
|
|
|
|
|
|
|
oint gcalendar ClearMainCalendar --token %token%
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
```json title="Result"
|
2024-07-10 11:59:55 +03:00
|
|
|
""
|
2024-06-05 10:19:46 +00:00
|
|
|
```
|