Skip to main content

rmQuery

Callable

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

  • Delete a query at it's given path.

    @example
    import utils from '@eventcatalog/utils';

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

    // removes an query at the given path (queries dir is appended to the given path)
    // Removes the query at queries/GetOrders
    await rmQuery('/GetOrders');