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

> Permanently delete a Slack Canvas.

`slack.deleteCanvas` permanently deletes a Slack Canvas that the connected app can manage.

## Example

```ts automations/delete-slack-canvas.automation.ts theme={null}
import { automation, onDashboardRun } from "automate.ax"
import { slack } from "automate.ax/slack"

export default automation("Delete obsolete canvas", () => {
  onDashboardRun({ title: "Delete obsolete canvas" })

  slack.deleteCanvas({ canvasId: "F01234567" })
})
```

## Inputs

| Input                          | Type                                             | Required | Description             |
| ------------------------------ | ------------------------------------------------ | -------- | ----------------------- |
| `canvasId`                     | `string`                                         | Yes      | Stable Slack Canvas ID. |
| Second argument: `{ account }` | `string \| IntegrationAccountReference<"slack">` | No       | Slack binding.          |

## Output

Returns no value after Slack deletes the canvas.
