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

> Run when Airtable deletes a table.

`airtable.onTableDeleted` provides the deleted table's stable ID.

```ts automations/alert-on-airtable-table-deletion.automation.ts theme={null}
import { automation } from "automate.ax"
import { airtable } from "automate.ax/airtable"

export default automation("Alert on Airtable table deletion", () => {
  const event = airtable.onTableDeleted({ baseId: "app123" })
  // Remove state tied to the deleted Airtable table.
})
```

`baseId` is required; `account` defaults to the project binding. Airtable does not include the deleted schema, so preserve metadata before deletion when needed. Requires `webhook:manage` and `schema.bases:read`.
