> ## 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.

# Cancel scheduled event

> Cancel a Calendly meeting for all invitees.

`calendly.cancelScheduledEvent` accepts an event UUID and optional reason, then cancels the complete scheduled event.

```ts automations/cancel-calendly-event.automation.ts theme={null}
import { automation, onDashboardRun } from "automate.ax"
import { calendly } from "automate.ax/calendly"

export default automation("Cancel Calendly event", () => {
  onDashboardRun({ title: "Cancel Calendly event" })
  calendly.cancelScheduledEvent({
    eventId: "event-id",
    reason: "Host unavailable",
  })
})
```

The result records who canceled, the canceler type, reason, and timestamp. This differs from an invitee using their personal `cancelUrl`. The mutation is not replay-safe.
