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

# Cancel scheduled message

> Cancel a pending Slack message before delivery.

`cancelScheduledMessage` removes a message that Slack has not delivered yet.

## Example

```ts automations/cancel-slack-message.automation.ts theme={null}
import { automation } from "automate.ax"
import { cancelScheduledMessage } from "automate.ax/slack"

export default automation("Cancel Slack reminder", () => {
  cancelScheduledMessage({
    conversationId: "C01234567",
    scheduledMessageId: "Q01234567",
  })
})
```

## Inputs

| Input                | Type                                             | Required | Description                                         |
| -------------------- | ------------------------------------------------ | -------- | --------------------------------------------------- |
| `conversationId`     | `string`                                         | Yes      | Destination returned by `scheduleMessage`.          |
| `scheduledMessageId` | `string`                                         | Yes      | Scheduled message ID returned by `scheduleMessage`. |
| `account`            | `string \| IntegrationAccountReference<"slack">` | No       | Slack binding.                                      |

## Output

Returns `Signal<void>`. Slack rejects an ID that has already been delivered or
canceled, or one belonging to a different conversation.
