Delete File

slack.delete_file
ActionChat & messagingconnection required

Calls the Slack Web API with the connection's bot token.

Delete a file from Slack, removing every share of it.

Connection

Required
Yes — the node will not save without one
Auth type
API key
Providers
Slack
Secret shape
the Slack bot token (xoxb-…), or {"token": "xoxb-…"}
Resolved by
config.connection_id, else node.connection_id

Configuration

1 field, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
file
The Slack file id (F…), as emitted by slack.upload_file or slack.list_files.
stringYes———

Output

One shape.

result

FieldTypeExample
ok
Always true; a failure raises instead.
booleantrue
file
The file id that was deleted.
string—
{
  "file": "",
  "ok": true
}

Notes

  • The bot must be a member of a private channel before it can act there (Slack answers not_in_channel otherwise).
  • Slack rate-limits each Web API method on its own tier; a throttled call fails with the number of seconds to wait and is safe for the node's retry policy to repeat.

See Delete File run in a workflow.

In a technical demo we add the Slack connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.