@nrwl/workspace:remove
Remove a project from the workspace.
Usage
nx generate remove ...nx g rm ... #sameBy default, Nx will search for remove in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
nx g @nrwl/workspace:remove ...Show what will be generated without writing to disk:
nx g remove ... --dry-runExamples
Remove my-feature-lib from the workspace:
nx g @nrwl/workspace:remove my-feature-libForce removal of my-feature-lib from the workspace:
nx g @nrwl/workspace:remove my-feature-lib --forceRemoveOptions
forceRemove
boolean
Default:
falseWhen true, forces removal even if the project is still in use.
importPath
string
The library name used at creation time
projectName
projectRequired
string
The name of the project to remove.
skipFormat
boolean
Default:
falseSkip formatting files.