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

# Remove records from lists

> Remove Apollo contacts or accounts from named lists.

`removeRecordsFromList` removes resolved contacts or accounts from one or more
exact list names.

```ts automations/remove-apollo-list-members.automation.ts theme={null}
import { automation, onHttpRequest } from "automate.ax"
import { removeRecordsFromList } from "automate.ax/apollo"

export default automation("Remove stale Apollo contacts", () => {
  onHttpRequest({ scope: "automation" })
  removeRecordsFromList({
    recordType: "contacts",
    records: [{ id: "contact-id" }],
    listNames: ["Active Leads"],
  })
})
```

`recordType` is `"contacts" | "accounts"`; `records` and `listNames` are
non-empty arrays. Set `async: true` for background processing. Optional
`account` selects the Apollo binding. Returns `{ lists, job?, message? }` with
the same synchronous/background semantics as `addRecordsToList`.
