Slack Leave

Slack Leave

Certified

Leave a Slack channel

Removes the caller from the specified channel. Public channels can be rejoined; private channels may need an invite.

yaml
type: io.kestra.plugin.slack.app.conversations.Leave

Leave a channel

yaml
id: slack_leave_channel
namespace: company.team

tasks:
  - id: leave_channel
    type: io.kestra.plugin.slack.app.conversations.Leave
    token: "{{ secret('SLACK_TOKEN') }}"
    channel: "C1234567890"
Properties

Channel ID

Channel to leave; provide the Slack channel ID. To get the channel ID, right click on the channel name in Slack and select 'Copy Link'. The ID is the last part of the URL.

Slack token

Reference (ref) of the pluginDefaults to apply to this task.