Planning & Cleaning
bekas plan # previewbekas plan --safe-only # only SAFE itemsbekas plan --include-review # also REVIEW itemsbekas plan --save plan.json # write a signed plan fileclean is a dry run unless you pass --apply.
bekas clean # preview onlybekas clean --apply --safe-only # remove SAFE itemsbekas clean --apply --review # also include REVIEW itemsbekas clean --apply --yes-all # skip per-category promptsbekas clean --apply --plan-file plan.json| Option | Meaning |
|---|---|
--apply |
Actually remove things |
--safe-only |
Only SAFE-tier candidates (the default; cannot be combined with --review) |
--review |
Also include REVIEW-tier candidates; the typed confirmation still applies |
--yes-all |
Skip prompts |
--non-interactive |
For CI; needs --yes-all or --accept-categories |
--accept-categories |
Comma-separated whitelist, e.g. docker,node |
--plan-file |
Apply a saved, signed plan |
--force-stale |
Apply a plan even if candidates changed since it was made |
--allow-unsigned |
Accept a --plan-file that has no signature (a signed file is always verified) |
One clean at a time
Section titled “One clean at a time”clean --apply takes a single-instance lock. If another bekas clean --apply is genuinely running you get exit code 3. See Troubleshooting.