Skip to docs content

scpm clean

  • Usage: scpm clean [-l --lockfile]

Remove node_modules across every workspace project.

--lockfile / -l also deletes lockfiles. A clean script in the root package.json overrides the built-in.

Flags

-l --lockfile

Also remove lockfiles at the workspace root.

Targets scpm-lock.yaml, pnpm-lock.yaml, package-lock.json, npm-shrinkwrap.json, yarn.lock, and bun.lock.