# calendar.deleted

Source: https://developer.nylas.com/docs/reference/notifications/calendar/calendar-deleted/

Sent when a user deletes a calendar.

## data.object fields

- `grant_id` (string) - Unique identifier for the grant that owned this calendar.
- `id` (string) **(required)** - Unique identifier for the deleted calendar.
- `is_primary` (boolean) - Whether this was the user's primary calendar.
- `name` (string) - Display name of the deleted calendar.
- `object` (string) **(required)** (calendar) - Object type identifier.
- `read_only` (boolean) - Whether the calendar was read-only for the authenticated user.
- `timezone` (string) - IANA timezone of the calendar.
- `is_owned_by_user` (boolean) - Whether the authenticated user owned this calendar.
- `hex_color` (string) - Background color of the calendar in hex format. May be omitted if not set by the provider.
- `hex_foreground_color` (string) - Foreground (text) color of the calendar in hex format. May be omitted if not set by the provider.

## Example payload

```json
{
  "specversion": "1.0",
  "type": "calendar.deleted",
  "source": "/google/events/incremental",
  "id": "<WEBHOOK_ID>",
  "data": {
    "application_id": "<NYLAS_APPLICATION_ID>",
    "object": {
      "grant_id": "<NYLAS_GRANT_ID>",
      "id": "calendar@group.calendar.google.com",
      "is_primary": false,
      "name": "Mock Calendar",
      "object": "calendar",
      "read_only": false,
      "timezone": "America/Los_Angeles",
      "is_owned_by_user": false
    }
  },
  "webhook_delivery_attempt": 1
}
```
