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

# Deactivate template

> Deactivate a Brevo transactional email template.

`deactivateTemplate` prevents new sends from using a template without deleting
its content or history.

## Example

```ts theme={null}
import { automation, onHttpRequest } from "automate.ax"
import { deactivateTemplate } from "automate.ax/brevo"

export default automation("Retire a receipt template", () => {
  onHttpRequest({ scope: "automation" })

  deactivateTemplate({ templateId: 42 })
})
```

`templateId: number | string` is required and `account` selects the Brevo
binding. The action returns `Signal<void>`. Existing sent messages and their
events remain available; sends that reference an inactive template fail.
