@nx/workspace:remove
Remove a project from the workspace.
Remove a project from the workspace.
1nx generate remove ...
2
1nx g rm ... #same
2
By 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 ...
2
Show what will be generated without writing to disk:
1nx g remove ... --dry-run
2
Remove my-feature-lib
from the workspace:
1nx g @nx/workspace:remove my-feature-lib
2
Force removal of my-feature-lib
from the workspace:
1nx g @nx/workspace:remove my-feature-lib --forceRemove
2
The name of the project to remove.
false
When true
, forces removal even if the project is still in use.
The library name used at creation time
false
Skip 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.