usage: kanon clean [-h] [--orphans] [--purge] [--purge-all] [kanonenv_path]

Execute the full Kanon clean lifecycle.

If any dependency set KANON_SOURCE_<alias>_MARKETPLACE=true, runs
the uninstall script and removes the marketplace directory. Then
removes .packages/ and .kanon-data/ directories and prunes the
content-addressed entries from the shared KANON_HOME store.

With --orphans, before the normal teardown kanon also unregisters
any kanon-owned marketplaces recorded in .kanon.lock that are no
longer referenced by .kanon (pruning them from ~/.claude).

With --purge, kanon also deletes this project's .kanon and
.kanon.lock files. With --purge-all, it additionally removes the
shared KANON_HOME store directory (default ~/.kanon-home); this
runs even when no .kanon project is present.

positional arguments:
  kanonenv_path  Path to the .kanon configuration file (default: auto-discover
                 from current directory)

options:
  -h, --help     show this help message and exit
  --orphans      Also unregister kanon-owned marketplaces no longer referenced
                 by .kanon/.kanon.lock (prunes them from ~/.claude).
  --purge        Also delete this project's .kanon and .kanon.lock files after
                 the normal teardown (full removal of the project's kanon
                 config).
  --purge-all    Everything --purge does, and also remove the shared kanon
                 home store directory (KANON_HOME, default ~/.kanon-home) used
                 by all projects. Runs even when no .kanon project is present
                 (removes only the shared store).

Example:
  kanon clean             # auto-discovers .kanon
  kanon clean .kanon      # explicit path
  kanon clean --orphans   # also unregister orphaned marketplaces
  kanon clean --purge     # also delete .kanon and .kanon.lock
  kanon clean --purge-all # also remove the KANON_HOME store dir
