Skip to main content

rmUserById

Callable

  • rmUserById(catalogDir: string): (id: string) => Promise<void>

  • Delete a user by it's id.

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

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

    // deletes the user with id eventcatalog-core-user
    await rmUserById('eventcatalog-core-user');