delete_memory
Delete a memory with two modes: soft-archive (reversible, sets weight=0 for audit) or hard-remove (permanent, erases row entirely).
Instructions
Delete a memory — soft (archive) or hard (permanent removal).
Two modes:
Soft-delete (default, permanent=False): sets weight=0. Memory stays in LanceDB for audit trail but never surfaces in recall. Reversible via update().
Hard-delete (permanent=True): removes the row from LanceDB entirely. Irreversible. The ID cannot be reused.
Read-only: no. Mutates or removes a row. Prefer forget() for routine archiving; reserve permanent=True for data that must be erased.
Args: id: Memory ID to delete. permanent: False = soft-delete (weight=0), True = remove row from LanceDB permanently. Default: False.
Returns: dict: {'ok': True, 'id': , 'action': 'soft_deleted'} or {'ok': True, 'id': , 'action': 'deleted_permanently'}
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "delete_memory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Memory ID to delete. | |
| permanent | No | False = soft-delete (weight=0, reversible). True = permanent removal from LanceDB (irreversible). |