Skip to main content
New project sponsor 🪝Hookdeck: Serverless infrastructure for event-driven architecture. Learn more.

rmCommand

Callable

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

  • Delete a command at it's given path.

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

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

    // removes a command at the given path (commands dir is appended to the given path)
    // Removes the command at commands/UpdateInventory
    await rmCommand('/UpdateInventory');