@nx/workspace:remove
Remove a project from the workspace.
Monorepo World: October 7, 2024Monorepo World: October 7, 2024Join us!
Remove a project from the workspace.
1nx generate remove ...
21nx g rm ... #same
2By default, Nx will search for remove in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
1nx g @nx/workspace:remove ...
2Show what will be generated without writing to disk:
1nx g remove ... --dry-run
2Remove my-feature-lib from the workspace:
1nx g @nx/workspace:remove my-feature-lib
2Force removal of my-feature-lib from the workspace:
1nx g @nx/workspace:remove my-feature-lib --forceRemove
2The name of the project to remove.
falseWhen true, forces removal even if the project is still in use.
The library name used at creation time
falseSkip formatting files.