> For the complete documentation index, see [llms.txt](https://docs.discordbotstudio.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.discordbotstudio.org/events/event-types/channel-delete.md).

# Channel Delete

How to use the Channel Delete event in Discord Bot Studio

![](https://1776366025-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0L1z_JwGF9x5j-YBBE%2Fuploads%2Fmavi9RrI7Su3l7QEedyD%2Fimage.png?alt=media\&token=73a10b25-f853-4fb9-8523-38066f163fa7)

This event is emitted whenever a channel is deleted.

`tempVars.deletedchannel` is the variable which contains the value of the deleted channel.&#x20;
