﻿---
sidebar_position: 7
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# Delete event
 Deletes an event by ID



`Function DeleteEvent(Val Token, Val Calendar, Val Event) Export`

  | Parameter | CLI option | Type | Required | Description |
  |-|-|-|-|-|
  | Token | --token | String | &#x2714; | Token |
  | Calendar | --calendar | String | &#x2714; | Calendar ID |
  | Event | --event | String | &#x2714; | Event ID |

  
  Returns:  Map Of KeyAndValue - serialized JSON response from Google

<br/>




```bsl title="1C:Enterprise/OneScript code example"
    Token    = "ya29.a0AcM612wmWdggP-K6tOc3UqW0KxYMjUi60_Uhu-ERltTaavHGbML0nRBXqkuiBcr0GNmR_1gHKowaF1Rd_4Q5Amc9O23DEBZ95sNEGnpR5...";
    Calendar = "aed9a7a5ff01b42e80462afcfc08037e289b1a4dfb07820f5d4e2885e8ccd68e@group.calendar.google.com";
    Event    = "hcqslmklah35bb514mtfaf9p50";

    Result = OPI_GoogleCalendar.DeleteEvent(Token, Calendar, Event);
```
 

 <Tabs>
  
    <TabItem value="bash" label="Bash" default>
        ```bash
            oint gcalendar DeleteEvent \
             --token "***" \
             --calendar "48cc16d0983742e784b904c3865d000b6c900286cb9763fabc87964a6e44e71b@group.calendar.google.com" \
             --event "s4clftb571othsl72f6h0vvbfs"
        ```
    </TabItem>
  
    <TabItem value="bat" label="CMD/Bat" default>
        ```batch
            oint gcalendar DeleteEvent ^
             --token "***" ^
             --calendar "48cc16d0983742e784b904c3865d000b6c900286cb9763fabc87964a6e44e71b@group.calendar.google.com" ^
             --event "s4clftb571othsl72f6h0vvbfs"
        ```
    </TabItem>
</Tabs>


```json title="Result"
null
```
