Skip to content

clean

Run capa clean when you want to strip capa-managed artifacts before a reinstall or when leaving a project.

Terminal window
capa clean

This command has no command-specific flags. Global flags still apply — see Global flags.

  • Skill directories capa installed for each provider
  • capa-managed MCP client config entries
  • capa-managed blocks in AGENTS.md / CLAUDE.md (deletes the file if it becomes empty)
  • capa-installed hook entries (hand-authored hooks are preserved)
  • Materialized hook scripts under ~/.capa/hooks/<projectId>/

It does not delete your capabilities.yaml / .json or user-authored provider files.

Terminal window
capa clean
capa clean && capa install