> ## 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 calendar access rule

> Remove one Google Calendar sharing or access-control rule.

`deleteCalendarAccessRule` revokes the access represented by one immutable ACL
rule ID.

## Example

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

export default automation("Revoke calendar access", () => {
  onHttpRequest({ scope: "automation" })

  deleteCalendarAccessRule({
    calendar: "Team Calendar",
    ruleId: "user:former@example.com",
  })
})
```

## Inputs

`ruleId: string` is required. `calendar` defaults to primary and `account`
selects the Google account.

## Output

Returns `Signal<{ calendarId: string; ruleId: string }>` after deletion.
Revoking a rule can immediately remove the principal's calendar and event
access.
