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

> Start an automation when a task is removed from an Asana resource.

`onAsanaTaskRemoved` matches task `removed` events, such as removing a task from a watched project without deleting the task.

```ts automations/watch-removed-asana-tasks.automation.ts theme={null}
import { automation } from "automate.ax"
import { getTask, onAsanaTaskRemoved } from "automate.ax/asana"

export default automation("Load removed Asana tasks", () => {
  const event = onAsanaTaskRemoved({ resourceId: "project-gid" })
  getTask({ taskId: event.resource.id })
})
```

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

Returns an event signal with `action: "removed"`, `resourceType: "task"`, and compact event metadata. Removal is distinct from deletion: the task normally still exists and may remain in other projects.
