slack.leavePrivateChannel removes the installed bot from a private channel.
Example
automations/leave-private-channel.automation.ts
Inputs
Requires the stable privatechannelId.
Output
Completes without a value. Requiresgroups:write.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Leave a private Slack channel.
slack.leavePrivateChannel removes the installed bot from a private channel.
import { automation, onDashboardRun } from "automate.ax"
import { slack } from "automate.ax/slack"
export default automation("Leave private channel", () => {
onDashboardRun({ title: "Leave private channel" })
slack.leavePrivateChannel({ channelId: "G01234567" })
})
channelId.
groups:write.