Skip to main content
View as Markdown

Function: rmFlow()

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

Defined in: flows.ts:248

Delete a flow at its given path.

Parameters

ParameterType
directorystring

Returns

Function

Parameters

ParameterType
pathstring

Returns

Promise<void>

Example

import utils from '@eventcatalog/utils';

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

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