# Delete a channel

> Remove a channel from the server.

Source: https://docs.buildcord.dev/nodes/server/delete-channel/

`server.channelDelete` deletes a channel.

## Settings

| Setting | What it does |
| --- | --- |
| Channel or category | The channel, or the category, to delete. |
| Audit log reason | The reason Discord records. |

## Ways out

`out`. Turn on **If it fails** for a red way out.

## Notes

> **Warning**
>
> Deleting a channel also deletes its messages, and you can't undo it. Put a confirmation step, such as [Message with buttons](https://docs.buildcord.dev/nodes/messages/message-with-buttons), ahead of it.

- The bot needs the Manage Channels permission.

## Example

When someone presses **Close ticket**, delete the ticket channel.

## Related

- [Create a channel](https://docs.buildcord.dev/nodes/server/create-channel)
