Skip to content

clean command

Arham-Qureshi edited this page Jul 21, 2026 · 1 revision

clean — Remove Generated Output

Deletes the codebase-out/ directory and all its contents.

codebase-vis clean

clean output

How It Works

  1. Prompts you to confirm: "Are you sure you want to delete codebase-out?"
  2. If confirmed, recursively deletes the codebase-out/ directory
  3. If codebase-out/ doesn't exist, prints a message and exits gracefully

What Gets Deleted

Everything in codebase-out/:

  • graph.json
  • graph.html
  • cycles.json
  • semantic-summary.md
  • .cache.json
  • .explain-retry.json

Flags

Flag Description
(none) No flags — you'll be prompted for confirmation

Notes

  • The prompt prevents accidental deletion — you must explicitly confirm
  • After clean, you'll need to run codebase-vis generate again to recreate the graph
  • Use this to free up disk space or to start fresh with a clean slate

Clone this wiki locally