Function: rmDataStore()
rmDataStore(
directory): (path) =>Promise<void>
Defined in: data-stores.ts:84
Delete an data store (e.g. database, cache, etc.) at its given path.
Parameters
| Parameter | Type |
|---|---|
directory | string |
Returns
Function
Parameters
| Parameter | Type |
|---|---|
path | string |
Returns
Promise<void>
Examples
import utils from '@eventcatalog/utils';
const { rmDataStore } = utils('/path/to/eventcatalog');
// removes an data store at the given path (containers dir is appended to the given path)
// Removes the data store at containers/orders-db
await rmDataStore('/orders-db');
import utils from '@eventcatalog/utils';
const { rmContainer } = utils('/path/to/eventcatalog');
// removes an container at the given path (containers dir is appended to the given path)
// Removes the container at containers/orders-db
await rmContainer('/orders-db');