Actions19
- Monitoring Actions
- Lifecycle Actions
- Hygiene Actions
- Portability Actions
- Analysis Actions
Lifecycle → Purge Episodes
AI-generatedSummary
Preview or permanently delete matching episodes from a group. Filter by episode metadata, provenance, reference time, hygiene rule, or content; deletions can repair episode chains and control how linked facts are handled.
Inputs
- Backend — Choose Embedded (Graphology) or Neo4j (Remote); defaults to Embedded.
- Custom Storage Path — For the embedded backend, optionally set the graph data directory. Leave blank to use the default n8n storage directory.
- Group ID (required) — Group or session ID whose episodes to inspect or purge.
- Episode Kind — Limit matches by provenance kind, such as Active Human, Assistant Reply, Tool Output, or System. Any is the default.
- Trust Level — Limit matches by trust level: trusted, standard, unverified, or untrusted. Any is the default.
- Review Status — Limit matches by proposed, accepted, or rejected review status. Any is the default.
- Sender ID — Limit matches to episodes from this sender.
- Conversation ID — Limit matches to episodes from this conversation.
- Source Workflow ID — Limit matches to episodes written by this workflow.
- Source Execution ID — Limit matches to episodes written by this execution.
- Reference Time After — Limit matches to episodes referenced at or after this time.
- Reference Time Before — Limit matches to episodes referenced at or before this time.
- Malformed Content Rule — Optionally match assistant episodes with empty content or an empty content array.
- Content Contains — Case-insensitive fragment to match in episode content.
- Maximum Episodes — Maximum matching episodes to preview or delete per execution; defaults to 100, with a range of 1–10000.
- Execution Mode — Dry Run previews matching episodes by default. Select Delete to permanently remove them.
- Repair Episode Chain — When deleting, reconnect successor episodes to retained predecessors; enabled by default.
- Linked Fact Handling — Choose whether to unlink deleted episodes from facts, preserve references, or delete orphaned facts; defaults to unlinking.
- Confirm Episode Purge — For Delete mode, must be set to Confirmed before matching episodes are permanently deleted.
Output shape
A single result item describing the preview or purge operation.
Dry Run is the default. Delete mode requires explicit confirmation; the maximum episode limit applies to each execution.
