> ## 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 record deleted

> Start an automation when Airtable deletes a record from one table.

`onAirtableRecordDeleted` emits the stable identity of a deleted record.

```ts automations/report-airtable-deletions.automation.ts theme={null}
import { automation, sendEmail } from "automate.ax"
import { onAirtableRecordDeleted } from "automate.ax/airtable"

export default automation("Report Airtable deletions", () => {
  const event = onAirtableRecordDeleted({
    baseId: "app123",
    tableId: "tbl123",
  })

  sendEmail({ subject: "Airtable record deleted", text: event.recordId })
})
```

## Options

| Option    | Type                                                | Required | Description                                                       |
| --------- | --------------------------------------------------- | -------- | ----------------------------------------------------------------- |
| `baseId`  | `string`                                            | Yes      | Stable Airtable base ID.                                          |
| `tableId` | `string`                                            | Yes      | Stable Airtable table ID.                                         |
| `account` | `string \| IntegrationAccountReference<"airtable">` | No       | Static Airtable account binding; defaults to the project binding. |

## Trigger data

Returns `baseId`, `tableId`, `recordId`, ISO `occurredAt`, `source`, optional `sourceMetadata`, `transactionNumber`, and the complete Airtable transaction under `event`.

Airtable does not include deleted record field values. Persist any values you need before deletion, or use the record ID to reconcile another system.
