> ## 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 conditional format rule

> Delete a Google Sheets conditional-format rule at a sheet index.

`googleSheets.deleteConditionalFormatRule()` deletes one conditional-format rule from a sheet's priority list.

## Example

```ts theme={null}
import { automation, onDashboardRun } from "automate.ax"
import { googleSheets } from "automate.ax/google-sheets"

export default automation("Remove an obsolete formatting rule", () => {
  onDashboardRun({ title: "Remove an obsolete formatting rule" })

  googleSheets.deleteConditionalFormatRule({
    spreadsheet: "spreadsheet-id",
    sheet: "Orders",
    index: 0,
  })
})
```

## Inputs

Provide `spreadsheet`, `sheet`, and the rule's zero-based `index`. Indexes are per sheet and are positions, not stable IDs. Deleting a rule shifts the indexes of lower-priority rules. Second argument `{ account }` selects the Google Account. All action inputs accept compatible signals.

## Output

Returns the deleted rule's former `{ index, ranges, rule }` metadata.
