@nx/workspace:remove
Remove a project from the workspace.
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.
Watch the replays of exciting talks on developer tooling and monorepos! Catch all the insightful presentations from the event on our YouTube channel.