twining_prune_graph
Remove orphaned knowledge graph entities lacking relations to clean up stale data. Optionally filter by entity type or preview with a dry run.
Instructions
Remove orphaned knowledge graph entities that have no relations. Use this to clean up stale or disconnected entities. Optionally filter by entity type to only prune certain kinds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | If true, report orphans without removing them (default: false) | |
| entity_types | No | Only prune orphans of these types (e.g., ["concept", "file"]). If omitted, prunes all orphan types. |