Skip to docs content

scpm purge

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

Alias for clean — remove node_modules across every workspace project.

A purge 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.