> ## 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 Asana task deleted

> Start an automation when a task is deleted within an Asana resource.

`onAsanaTaskDeleted` matches task deletion events propagated through the watched resource.

```ts automations/watch-deleted-asana-tasks.automation.ts theme={null}
import { automation } from "automate.ax"
import { onAsanaTaskDeleted } from "automate.ax/asana"

export default automation("Watch deleted Asana tasks", () => {
  onAsanaTaskDeleted({ resourceId: "project-gid" })
})
```

`resourceId` is required. Optional static `account` defaults to the project binding.

Returns an event signal with `action: "deleted"`, `resourceType: "task"`, and the deleted task reference plus event metadata. Do not rely on `getTask` after this event because the resource has been deleted.
