Skip to main content
Removes an existing module from the project. It unregisters the module from AppModule and SharedModule, removes its path alias from the root tsconfig.json and its scope from .commitlintrc.ts, then deletes the modules/<name>/ directory. The core app and shared modules cannot be removed, and a missing module is reported as an error.

Usage

ooneex module:remove [options]

Examples

Run with no flags to be prompted for the module name, then confirm removal:
ooneex module:remove
Remove a module by name:
ooneex module:remove --name=billing
ooneex module:remove --name=Catalog

Options

OptionDescriptionDefault
--nameName of the module to remove (normalized to kebab-case).Prompted if omitted