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

> Revoke users' or channels' access to a Slack Canvas.

`slack.deleteCanvasAccess` revokes Canvas access from one or more users or channels.

## Example

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

export default automation("Revoke canvas access", () => {
  onDashboardRun({ title: "Revoke canvas access" })

  slack.deleteCanvasAccess({
    canvasId: "F01234567",
    subject: { ids: ["U01234567"], type: "users" },
  })
})
```

## Inputs

| Input                          | Type                                             | Required | Description                                  |
| ------------------------------ | ------------------------------------------------ | -------- | -------------------------------------------- |
| `canvasId`                     | `string`                                         | Yes      | Stable Slack Canvas ID.                      |
| `subject`                      | `{ type: "channels" \| "users"; ids: string[] }` | Yes      | One or more channels or users losing access. |
| Second argument: `{ account }` | `string \| IntegrationAccountReference<"slack">` | No       | Slack binding.                               |

## Output

Returns no value after Slack updates access.
