# calendar_event_delete

Delete Calendar Event

## Beschreibung

Delete one event from a calendar you can edit. Google events are deleted there too, without invitation emails. Requires the current version from a prior read. For Google series, this is the default; explicit all scope deletes the master series and requires its current series version.

## Zugriff

Zugriffsprofil: `gated`. Module: `calendar`.
Die Freigabe im Profil ersetzt keine Account-, Workspace- oder Rollenberechtigung.

## Parameter

| Name | Typ | Pflicht | Beschreibung |
| --- | --- | --- | --- |
| `account_id` | string | Ja |  |
| `calendar_id` | string | Ja |  |
| `event_id` | string | Ja |  |
| `expected_version` | integer | Ja |  |
| `series_scope` | string | Nein | Series deletion scope. Google and native calendars support this, all and future. Google future splits reset following exceptions. |
| `expected_series_version` | integer | Nein |  |

## Eingabeschema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "account_id": {
      "type": "string"
    },
    "calendar_id": {
      "type": "string"
    },
    "event_id": {
      "type": "string"
    },
    "expected_version": {
      "type": "integer",
      "minimum": 0
    },
    "series_scope": {
      "type": "string",
      "enum": [
        "this",
        "all",
        "future"
      ],
      "description": "Series deletion scope. Google and native calendars support this, all and future. Google future splits reset following exceptions."
    },
    "expected_series_version": {
      "type": "integer",
      "minimum": 0
    }
  },
  "required": [
    "account_id",
    "calendar_id",
    "event_id",
    "expected_version"
  ],
  "type": "object"
}
```

## Ausgabeschema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "deleted": {
      "type": "boolean"
    },
    "event_id": {
      "type": "string"
    }
  },
  "required": [
    "deleted",
    "event_id"
  ],
  "type": "object"
}
```
