---
title: "archive_channel"
summary: "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."
url: "https://docs.slack.dev/tools/deno-slack-sdk/reference/slack-functions/archive_channel"
type: "guide"
---

Source: https://docs.slack.dev/tools/deno-slack-sdk/reference/slack-functions/archive_channel

# archive_channel

## Facts {#facts}

**Description**Archive a channel

**Schema**`Schema.slack.functions.ArchiveChannel`

**Schema reference**`slack#/functions/archive_channel`

**Required scopes**

[`channels:write`](https://docs.slack.dev/reference/scopes/channels:write.md)[`im:write`](https://docs.slack.dev/reference/scopes/im:write.md)[`groups:write`](https://docs.slack.dev/reference/scopes/groups:write.md)[`mpim:write`](https://docs.slack.dev/reference/scopes/mpim:write.md)

## Input Parameters {#input-parameters}

### Required Input Parameters

**`channel_id`**`Schema.slack.types.channel_id`Required

The conversation ID for the channel you are archiving

_Examples_

`C123456`

`D123ABC456`

## Output Parameters {#output-parameters}

### Required Output Parameters

**`channel_id`**`Schema.slack.types.channel_id`Required

The conversation ID for the channel you archived

_Examples_

`C123456`

`D123ABC456`

## Usage info {#usage-info}

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.

### Example workflow step {#example-workflow-step}

```ts
const archiveChannelStep = ExampleWorkflow.addStep(
  Schema.slack.functions.ArchiveChannel,
  {
    channel_id: "C0123ABC456",
  },
);
```
