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

# Archive issue

> Archive a Linear issue or move it to recently deleted.

`archiveIssue` archives by default. Set `trash: true` to move the issue to Linear's recently deleted view instead.

```ts automations/archive-linear-issue.automation.ts theme={null}
import { automation, onHttpRequest } from "automate.ax"
import { archiveIssue } from "automate.ax/linear"

export default automation("Archive Linear issue", () => {
  onHttpRequest({ scope: "automation" })
  archiveIssue({ issueId: "ENG-123" })
})
```

`issueId` is a UUID or identifier. Optional `trash` selects recently deleted; optional `account` defaults to the project binding. Returns the archived `LinearIssue`, including `archivedAt` and provider trash state. Use [Unarchive issue](/reference/integrations/linear/actions/unarchive-issue) for archived issues.
