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

Execute the full Kanon clean lifecycle for THIS project.

If any dependency set KANON_SOURCE_<alias>_MARKETPLACE=true, runs
the uninstall script and removes the marketplace directory. Then
removes this project's source workspace under the shared store and
the aggregated package links this project created.

Other projects sharing the same KANON_HOME are left alone: their
workspaces, their package links, and the shared content-addressed
store entries all survive. Use --purge-all for machine-wide
teardown.

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
