Archive a channel
Schema.slack.functions.ArchiveChannel
slack#/functions/archive_channel
Not all conversations need to continue forever, so when the project is done, this function archives the channel, preventing new messages from being posted while preserving its history.
From channels to search, learn how Slack works from top to bottom.
When a channel is no longer needed, it can be archived or deleted (except for the the #general channel or #all-companyname channel). Archived channels are closed to new activity, but the message history is retained and searchable on paid plans. Deleted channels are permanently removed from a workspace, message history included.
const archiveChannelStep = ExampleWorkflow.addStep(
Schema.slack.functions.ArchiveChannel,
{
channel_id: "C082T4F6S1N",
},
);