Skip to content

Planning & Cleaning

Terminal window
bekas plan # preview
bekas plan --safe-only # only SAFE items
bekas plan --include-review # also REVIEW items
bekas plan --save plan.json # write a signed plan file

clean is a dry run unless you pass --apply.

Terminal window
bekas clean # preview only
bekas clean --apply --safe-only # remove SAFE items
bekas clean --apply --review # also include REVIEW items
bekas clean --apply --yes-all # skip per-category prompts
bekas 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)

clean --apply takes a single-instance lock. If another bekas clean --apply is genuinely running you get exit code 3. See Troubleshooting.