pnpm recursive remove <Package...>

Removes packages from node_modules and from the project's package.json

Arguments

NameDescription
Package

Options

NameDescription
--recursive, -rWhen 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
--globalRemove a global package
-P, --save-prodOnly remove the dependency from dependencies
-D, --save-devOnly remove the dependency from devDependencies
--save-optional, -OOnly 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