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

Delete a file from Slack via native OAuth integration. Permanently removes the file and its content from the workspace. Ideal for: file cleanup, storage management, automated file lifecycle.

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

Delete a file from Slack via native OAuth integration. Permanently removes the file and its content from the workspace. Ideal for: file cleanup, storage management, automated file lifecycle.


## At a Glance

| Field | Value |
| --- | --- |
| Action ID | `slack-delete-file` |
| Category | Integrations |
| Connector | `slack` |
| Requires gas | No |
| Funds movement | None declared |
| Tags | `slack`, `integration`, `write` |

## Payload Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `file` | `string` | Yes | File ID to delete \(e.g., F0123456789\) |

## Result Schema

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

## Examples

**Workflow node**

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

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

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