Query and lifecycle commands
pinset prune
Remove installed versions not protected by global or supplied project selections.
View source on GitHub ↗| Field | Description |
|---|---|
| Purpose | Remove installed versions not protected by global or supplied project selections. |
| Syntax and arguments | pinset prune [--cwd <path>] [--project <path>]... [--dry-run] [--json]. |
| Modifies state | Yes, unless --dry-run. |
| Example | pinset prune --project ./app --project ../service --dry-run |
| JSON | Yes; command name prune. |
| Exit | 0 for a completed plan/removal; 2 if references or ownership cannot be validated. |
| Key errors | Invalid project lock, unsafe installation path, missing receipt, or filesystem failure. |
/en/docs/commands/prunePinset 2.1