Function: rmDomain()
rmDomain(
directory): (path) =>Promise<void>
Defined in: domains.ts:176
Delete a domain at it's given path.
Parameters​
| Parameter | Type |
|---|---|
directory | string |
Returns​
Function
Parameters​
| Parameter | Type |
|---|---|
path | string |
Returns​
Promise<void>
Example​
import utils from '@eventcatalog/utils';
const { rmDomain } = utils('/path/to/eventcatalog');
// Removes the domain at domains/Payment
await rmDomain('/Payment');