Function: rmDataProduct()
rmDataProduct(
directory): (path) =>Promise<void>
Defined in: data-products.ts:176
Delete a data product at its given path.
Parameters​
| Parameter | Type |
|---|---|
directory | string |
Returns​
Function
Parameters​
| Parameter | Type |
|---|---|
path | string |
Returns​
Promise<void>
Example​
import utils from '@eventcatalog/utils';
const { rmDataProduct } = utils('/path/to/eventcatalog');
// removes a data product at the given path (data-products dir is appended to the given path)
// Removes the data product at data-products/CustomerDataProduct
await rmDataProduct('/CustomerDataProduct');