@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 ...
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.
Join us live for exciting talks on developer tooling and monorepos! Catch the action on YouTube and join the conversation on Discord!