> ## Documentation Index
> Fetch the complete documentation index at: https://docs.b3os.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Slack: Delete Message

Delete a message from a Slack channel via native OAuth integration. Removes a previously posted message using its channel and timestamp. Ideal for: message cleanup, temporary alerts, automated moderation.

![Slack: Delete Message logo](https://ai-icon.b3.fun/logo/slack)
Catalog action Integrations slack

Delete a message from a Slack channel via native OAuth integration. Removes a previously posted message using its channel and timestamp. Ideal for: message cleanup, temporary alerts, automated moderation.


## At a Glance

| Field | Value |
| --- | --- |
| Action ID | `slack-delete-message` |
| Category | Integrations |
| Connector | `slack` |
| Requires gas | No |
| Funds movement | None declared |
| Tags | `slack`, `messaging`, `notification`, `write`, `chat` |

## Payload Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `channel` | `string` | Yes | Channel ID containing the message |
| `ts` | `string` | Yes | Timestamp of the message to delete |

## Result Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `success` | `boolean` | Yes | - |
| `data` | `object` | No | - |

## Examples

**Workflow node**

```json
{
  "type": "slack-delete-message",
  "payload": {
    "channel": "example-channel",
    "ts": "example-ts"
  },
  "children": [],
  "connector": {
    "type": "slack",
    "id": "conn_slack"
  }
}
```
  **Test with API**

```bash
curl -X POST "https://api.b3os.org/v1/actions/slack-delete-message/test" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "inputs": {
    "channel": "example-channel",
    "ts": "example-ts"
  }
}'
```

**Use expressions for dynamic values**

Payload fields can use workflow expressions such as `{{$trigger.body.amount}}`, `{{$nodes.fetch.result.price}}`, and `{{$props.asset}}` when the value should come from a trigger, prior node, or reusable workflow prop.