slack.archivePrivateChannel archives a private channel.
Example
automations/archive-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.
Archive a private Slack channel.
slack.archivePrivateChannel archives a private channel.
import { automation, onDashboardRun } from "automate.ax"
import { slack } from "automate.ax/slack"
export default automation("Archive private channel", () => {
onDashboardRun({ title: "Archive private channel" })
slack.archivePrivateChannel({ channelId: "G01234567" })
})
channelId.
groups:write.