---
title: "Disconnect a messaging channel"
description: "Deletes the account's connection on the provider. Direct messages from that identity stop entering the account at once."
canonical: "https://www.cool.computer/docs/api-reference/messaging/disconnect-a-messaging-channel"
---
# Disconnect a messaging channel

> Deletes the account's connection on the provider. Direct messages from that identity stop entering the account at once.

```http
DELETE https://api.cool.computer/api/messaging/{provider}
```

Deletes the account's connection on the provider. Direct messages from that identity stop entering the account at once. Callers: the account owner, with the browser session, a user API key or an access token; organization API keys are refused, as for starting a chat.

## Authorization

- A Cool Computers API key, user access token, or claimed agent access token in the Authorization header. Follow https://www.cool.computer/auth.md for agent registration and https://www.cool.computer/authentication.md for direct user credentials.

## Parameters

- `provider` (path, "telegram" or "slack", required): Messaging provider.

## Responses

- `204`: The connection was deleted.
- `400`: Bad Request.
- `401`: Unauthorized.
- `404`: Not Found.
- `429`: Too Many Requests. If the problem code is api_request_rate_exceeded, wait for Retry-After seconds; other problem codes describe a separate limit.
- `500`: Internal Server Error.
- `default`: A machine-readable API error with a stable code and recovery instruction.

An error is an `application/problem+json` document with a stable `code`; [API errors](/docs/api-reference/errors) says how to handle one.

## Example

```sh
curl -X DELETE "https://api.cool.computer/api/messaging/$PARAM_PROVIDER" \
  -H "authorization: Bearer $TOKEN"
```
