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

***

# Function: rmFlow()

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

Defined in: flows.ts:248

Delete a flow at its 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 { rmFlow } = utils('/path/to/eventcatalog');

// Removes the flow at flows/PaymentFlow
await rmFlow('/PaymentFlow');
```
