memory_prune
Delete memories from a specified actor's store using configurable strategies such as age, importance, count, or type. Returns the IDs and count of removed memories.
Instructions
Prune (delete) memories matching the given strategy. Scoped to a single actor — defaults to the current session actor. Returns the pruned memory IDs and count. Handle with care.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Prune strategy type. Note: 'custom' is not available via MCP because it requires a JS function. | |
| maxAge | No | Max age in seconds (for byAge). Memories older than this are removed. | |
| actorId | No | Actor ID to scope pruning to. Defaults to the current session actor. | |
| maxPerActor | No | Maximum memories per actor (for byCount). Excess memories are removed. | |
| memoryTypes | No | Memory types to prune (for byType). | |
| minImportance | No | Minimum importance (for byImportance). Memories below this are removed. |