---
title: "Deletes a channel from a guild."
method: POST
path: "/deleteChannel"
---

# Deletes a channel from a guild.

`POST /deleteChannel`

This function removes a specified channel from the guild. It takes a channel ID as input and returns a Promise that resolves when the deletion is complete. This operation is irreversible and should be used with caution.

## Request body

- object
  - `body` object — Body of the deleteChannel sls call
    - `arguments` unknown[], required
      - unknown
    - `auth` object — Authentication object
      - `strategy` 'apikey' — Authentication strategy
      - `variables` unknown[] — Variables for the authentication strategy
        - unknown
    - `packageName` string — @microfox/discord

## Response `200`

Channel successfully deleted

- object
  - `success` boolean — Indicates if the channel was successfully deleted

## Other responses

- `400` — Bad request - Invalid channel ID
- `403` — Forbidden - Insufficient permissions to delete the channel
- `404` — Not Found - Channel with the given ID does not exist
- `500` — Internal server error

## Changes

- **2025-05-29** `2deb154b9766` — 1 warning, 4 info
  - removed the optional property `data` from the response with the `200` status
  - added the media type `application/json` for the response with the status `400`
  - added the media type `application/json` for the response with the status `500`
  - added the non-success response with the status `403`
  - …1 more
- **2025-05-28** `d03e8c66c195` — 2 breaking, 3 info
  - removed the media type `application/json` for the response with the status `400`
  - removed the media type `application/json` for the response with the status `500`
  - removed the non-success response with the status `403`
  - removed the non-success response with the status `404`
  - …1 more

[Change history](https://skmtc.dev/microfox-ai/apis/microfox-discord-sdk-api/changes/deleteChannel/post.md)

---

[API](https://skmtc.dev/microfox-ai/apis/microfox-discord-sdk-api.md) · [All operations](https://skmtc.dev/microfox-ai/apis/microfox-discord-sdk-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/microfox-ai/microfox-discord-sdk-api/revisions/7cb5b64ae924/schema)
