Command

bengal.site.clean

Clean generated files and stale processes.

By default, removes only the output directory (public/).

Options:

--cache Also remove build cache --all Remove both output and cache --stale-server Clean up stale 'bengal serve' processes

Usage

bengal.site.clean [OPTIONS]

Options

Option Type Description
--cache flag BOOLEAN

Also remove build cache (.bengal/ directory)

--all flag BOOLEAN

Remove everything (output + cache)

--config PATH

Path to config file (default: bengal.toml)

--force, -f flag BOOLEAN

Skip confirmation prompt

--stale-server flag BOOLEAN

Clean up stale 'bengal serve' processes

Arguments

Argument Type Description
source PATH Default:.

Examples

  bengal clean                  # Clean output only
  bengal clean --cache          # Clean output and cache
  bengal clean --stale-server   # Clean up stale server processes