Skip to main content

rmDataStore

Callable

  • rmDataStore(directory: string): (path: string) => Promise<void>

  • Delete an data store (e.g. database, cache, etc.) at its given path.

    @example
    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');