pnpm recursive remove <Package...>
Removes packages from node_modules and from the project's package.json
Arguments
Options
Name | Description |
---|
--recursive, -r | When used inside a workspace, removes a dependency (or dependencies) from every workspace package.
When used not inside a workspace, removes a dependency (or dependencies) from every package found in subdirectories |
--global | Remove a global package |
-P, --save-prod | Only remove the dependency from dependencies |
-D, --save-dev | Only remove the dependency from devDependencies |
--save-optional, -O | Only remove the dependency from optionalDependencies |
--filter <Filepath / Package> | Filtering allows you to restrict commands to specific subsets of packages.
pnpm supports a rich selector syntax for picking packages by name or by relation.
More details: https://pnpm.io/filtering |