Copy as Markdown[View as Markdown](/docs/sdk/functions/rmChannel.md)

***

# Function: rmChannel()

> **rmChannel**(`directory`): (`path`) => `Promise`<`void`>

Defined in: channels.ts:137

Delete a channel at it's given path.

## Parameters[​](#parameters "Direct link to Parameters")

| Parameter   | Type     |
| ----------- | -------- |
| `directory` | `string` |

## Returns[​](#returns "Direct link to Returns")

`Function`

### Parameters[​](#parameters-1 "Direct link to Parameters")

| Parameter | Type     |
| --------- | -------- |
| `path`    | `string` |

### Returns[​](#returns-1 "Direct link to Returns")

`Promise`<`void`>

## Example[​](#example "Direct link to Example")

```
import utils from '@eventcatalog/utils';

const { rmChannel } = utils('/path/to/eventcatalog');

// removes a channel at the given path (channels dir is appended to the given path)
// Removes the channel at channels/InventoryChannel
await rmChannel('/InventoryChannel');
```
