Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Cleaning up

uv run clean [CATEGORY ...]     # delete generated files by category
uv run clean --list             # show the categories
uv run clean --dry-run          # show what would be removed

clean never touches data/ or .env. Each tool's output belongs to a category in paths.CLEAN_CATEGORIES.

CategoryWhat it removesRebuilt by
extractedbuild/disc/, build/zoombi32/, build/symbols/uv run extract-game, uv run runtime-symbols, uv run classes
vm-statethe VM overlay and install leftoversautomatically on vm run
vm-gamethe QuickTime and game install (and the overlay on it)uv run vm install-game (1 min)
vm-basethe Windows 98 install (and everything layered on it)uv run vm install (30-60 min)
vmall of the above
match-cacheobjects match compiled (build/match-cache/)automatically by uv run match
toolchainthe extracted Borland toolchains, the Wine prefix and match-cacheuv run toolchain setup
winethe downloaded Wine build (macOS) and the Wine prefixuv run toolchain setup (downloads ~180 MB)
ghidra-projectthe Ghidra projects (the game's and the codec's), including any work done in Ghidra's GUI, and the function list and codec Cuv run ghidra setup, uv run ghidra codec
ghidraall of Ghidra: the download, native build and projectuv run ghidra setup (downloads ~540 MB)
reportbuild/report/uv run report
bookthe rendered handbook (build/book/)uv run book build
rebuildthe rebuilt executable and what went into it (build/rebuild/)uv run build
packed-assetsthe archives assets pack built (build/assets/)uv run assets pack
assets-cachecompressed images (build/assets-cache/)automatically by uv run assets pack or verify
movie-framesthe frames assets frames drew (build/movie-frames/)uv run assets frames
portthe port's builds (build/port/web/, native/, headless/) and the site (build/port/site/)uv run port build, uv run port package
port-datathe port's drives, including what the native and headless builds saved (build/port/data/)uv run port package
emsdkthe Emscripten SDK (build/emsdk/)uv run port setup (downloads ~1 GB)
soundfontthe port's SoundFont (build/soundfont/)uv run port setup (downloads 32 MB)
python.venv/, __pycache__automatically by uv run
allall of the above plus anything else in build/

With no arguments it removes extracted, vm-state, toolchain, report, rebuild, packed-assets, assets-cache, movie-frames, book, port and python: everything cheap to rebuild, keeping the VM installs, the Wine, Emscripten and SoundFont downloads, and the port's saved games. uv run clean all gets back to a fresh clone.

Keep this table in sync with paths.CLEAN_CATEGORIES. Every path a tool generates must belong to a category (categories may include others by name); add new ones to CLEAN_DEFAULT if they're cheap to rebuild.