session_forget_memory
Delete a specific memory entry by its ID with soft delete (reversible) or hard delete (permanent) options for GDPR compliance.
Instructions
Forget (delete) a specific memory entry by its ID. Supports two modes:
Soft delete (default): Tombstones the entry — it stays in the database for audit trails but is excluded from all search results. Reversible.
Hard delete: Permanently removes the entry from the database. Irreversible. Use only when GDPR Article 17 requires complete erasure.
⚠️ Soft delete is recommended for most use cases. The entry can be restored in the future if needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Optional GDPR Article 17 justification for the deletion. Examples: 'User requested', 'Data retention policy', 'Outdated information'. Stored alongside the tombstone for audit trail purposes. | |
| memory_id | Yes | The UUID of the memory (ledger) entry to forget. You can find this ID in search results returned by session_search_memory or knowledge_search. | |
| hard_delete | No | If true, permanently removes the entry (irreversible). If false (default), soft-deletes by setting deleted_at timestamp. Soft-deleted entries are excluded from searches but remain in the database. |