---
title: "Leave channels - When leaving all channels"
method: DELETE
path: "/v3/bots/{bot_userid}/channels"
tags: ["Bot"]
---

# Leave channels - When leaving all channels

`DELETE /v3/bots/{bot_userid}/channels`

## Request

- Base URL: `https://api-APP_ID.sendbird.com`
- URL: `https://api-APP_ID.sendbird.com/v3/bots/{bot_userid}/channels`
- Auth: none declared

## Leave channels

Makes a bot leave all group channels.

[https://sendbird.com/docs/chat/platform-api/v3/bot/managing-a-bot/leave-channels#1-leave-channels](https://sendbird.com/docs/chat/platform-api/v3/bot/managing-a-bot/leave-channels#1-leave-channels)

## Path parameters

- `bot_userid` string, required

## Headers

- `api-token` string

## Response `200`

Successful response

- EmptyObjectResponse

## Changes

- **2025-07-27** `7a85bad03e90`: 2 warning, 3 info
  - deleted the `header` request parameter `Api-Token`
  - deleted the `query` request parameter `channel_url`
  - api operation id `leaveChannels` removed and replaced with `leaveGroupChannels`
  - added the new optional `header` request parameter `api-token`
  - …1 more
- **2023-11-10** `135d8b0705d4`: 1 info
  - the `header` request parameter `Api-Token` became optional
- **2022-06-29** `4012275aa67d`: 2 info
  - api tag `Bot` added
  - api tag `Bot interface` removed
- **2022-02-16** `c42164095c7c`: 1 breaking
  - the `header` request parameter `Api-Token` became required

[Operation history](https://skmtc.dev/sendbird/apis/sendbird-platform-sdk/changes/v3/bots/:bot_userid/channels/delete.md)

---

[API](https://skmtc.dev/sendbird/apis/sendbird-platform-sdk.md) - [All operations](https://skmtc.dev/sendbird/apis/sendbird-platform-sdk/llms.txt) - [OpenAPI document](https://skmtc.dev/sendbird/apis/sendbird-platform-sdk/revisions/9e53a5288df0?raw)
