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

# On permission deleted

> Run an automation when a permission is deleted in Google Drive.

`googleDrive.onPermissionDeleted` starts an automation when a permission is deleted on the selected Drive resource.

## Example

```ts theme={null}
import { automation } from "automate.ax"
import { googleDrive } from "automate.ax/google-drive"

export default automation("On permission deleted", () => {
  const event = googleDrive.onPermissionDeleted({
    resource: "folder-id",
    includeDescendants: true,
  })

  // Update the access audit after Google Drive removes a permission.
})
```

## Options

`resource` accepts a file, folder, or shared-drive ID or a standard Drive, Docs, or Slides URL. Set `resourceType: "drive"` for a shared-drive ID or a shared-drive URL copied from Google Drive; only URLs containing `/drives/` identify shared drives automatically. `includeDescendants` includes nested files for folders and is always enabled for shared drives. `account` optionally selects a Google Account.

## Trigger data

Returns the semantic `eventType`, `action`, `resourceType`, provider `eventId`, and `occurredAt`. Resource-specific fields can include `fileId`, `resourceId`, `resourceIds`, parent IDs, MIME type, version, status, due time, and participant email addresses. Deleted resources can contain only identifiers.
