purge_memories
Selectively delete memories from LanceDB by type, scope, or age. Preview deletions with dry_run before permanent removal.
Instructions
Selective bulk delete of memories by type, scope, or age.
Removes matching rows from LanceDB permanently. Always use dry_run=True first to preview what would be deleted — this is irreversible.
Read-only: no. Irreversibly removes rows from LanceDB. At least one filter is required to prevent accidental full-table deletion.
Args: scope: Only delete memories in this scope (e.g. 'proj:abc123'). type: Only delete memories of this type — 'episodic', 'semantic', or 'permanent'. older_than_days: Only delete memories older than N days. dry_run: If True, preview count without deleting (default False). Always test with dry_run=True first.
Returns: dict: If dry_run: {'dry_run': True, 'current_total': , 'filters': {...}}. If executed: {'ok': True, 'deleted': , 'remaining': }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | Only delete memories in this scope. | |
| type | No | Only delete memories of this type: 'episodic', 'semantic', or 'permanent'. | |
| older_than_days | No | Only delete memories older than N days. | |
| dry_run | No | If True, preview what would be deleted without actually deleting. Always test with True first. |