ooneex design:remove deletes a design module you no longer need. It does not just remove the folder — it unwires the module from the rest of the workspace first, so you are not left with broken imports or dangling config. It removes any leftover references in AppModule and SharedModule, deletes the path alias from the root tsconfig.json, drops the module scope from the commitlint config, and only then deletes the modules/<kebab-name>/ directory.
The command is deliberately narrow: it only removes modules whose <name>.yml declares type: "design". Pointing it at a regular module is rejected with an error, and the core app and shared modules are protected and cannot be removed. A name that does not match any module is reported as an error too.
Command
--name, you are prompted for the design module to remove. Unless you pass --silent, you are asked to confirm before anything is deleted.
Examples
Module stripped, and the folder on disk uses kebab-case — so --name=ui, --name=Ui, and --name=UiModule all target the same modules/ui/ directory.
Options
| Option | Description | Default |
|---|---|---|
--name | Name of the design module to remove. | Prompted if omitted |
--cwd | Working directory the command runs in. | Current directory |
--silent | Skip prompts, confirmation, and log output. | false |
What gets cleaned up
Removing a design module touches more than the module folder. In order, the command:- Removes any leftover references to the module in
AppModule. - Removes any leftover references to the module in
SharedModule. - Deletes the module’s path alias from the root
tsconfig.json. - Removes the module’s scope from the commitlint config.
- Deletes the
modules/<kebab-name>/directory.
Use with Claude and Codex
The remover ships a matchingdesign:remove skill, so your AI agent can run the same cleanup from a natural-language request — confirming the target module, running the command, and reporting what was removed. Initialize the skills once for your agent:
- Claude
- Codex
Prompt
Related
- Design System overview — how design modules fit into the workspace.
- Create a design module — scaffold a new design module.
- design:remove — the full command reference.