> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Delete event

> Delete or cancel one Google Calendar event.

`deleteEvent` removes an event from its calendar. Use it only when cancellation
is intended; this is not a way to decline an invitation.

## Example

```ts theme={null}
import { automation, onHttpRequest } from "automate.ax"
import { deleteEvent } from "automate.ax/google-calendar"

export default automation("Cancel a planning event", () => {
  onHttpRequest({ scope: "automation" })

  deleteEvent({
    calendar: "Team Calendar",
    event: "event-id",
    sendUpdates: "all",
  })
})
```

## Inputs

| Property      | Type                                | Required | Default         | Description                               |
| ------------- | ----------------------------------- | -------- | --------------- | ----------------------------------------- |
| `event`       | `string`                            | Yes      | —               | Event ID or standard Calendar event URL.  |
| `calendar`    | `string`                            | No       | `"primary"`     | Exact calendar title or ID.               |
| `sendUpdates` | `"all" \| "externalOnly" \| "none"` | No       | Google default  | Guest cancellation notification behavior. |
| `account`     | Google account reference            | No       | Project default | Connected Google account.                 |

## Output

Returns `Signal<{ calendarId: string; eventId: string }>` identifying the
deleted event. Delete an organizer-owned event to cancel it; use [Respond to
invitation](/reference/integrations/google-calendar/actions/respond-to-invitation)
when the authenticated user is an attendee.
