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

> Permanently delete Airtable records in provider-sized batches.

`deleteRecords` removes one or more records from the same table. Automate.ax
groups the IDs into Airtable's 10-record delete requests.

## Example

```ts automations/delete-airtable-records.automation.ts theme={null}
import { automation, onHttpRequest } from "automate.ax"
import { deleteRecords } from "automate.ax/airtable"

export default automation("Delete duplicate Airtable leads", () => {
  onHttpRequest({ scope: "automation" })
  deleteRecords({
    base: "CRM",
    table: "Leads",
    recordIds: ["recDuplicateOne", "recDuplicateTwo"],
  })
})
```

## Inputs

| Input       | Type                                                | Required | Default         | Description                    |
| ----------- | --------------------------------------------------- | -------- | --------------- | ------------------------------ |
| `base`      | `string`                                            | Yes      | —               | Exact base name or stable ID.  |
| `table`     | `string`                                            | Yes      | —               | Table name or stable ID.       |
| `recordIds` | `string[]`                                          | Yes      | —               | One or more stable record IDs. |
| `account`   | `string \| IntegrationAccountReference<"airtable">` | No       | Project default | Connected Airtable account.    |

## Output

Returns `{ deleted: true; id: string }[]`, one receipt per deleted record.

<Warning>
  Deletion is permanent and batches are not transactional. If a later request
  fails, records deleted by earlier requests remain deleted.
</Warning>
