Skip to main content

delete_long_term

Method
This is a method of the Memory class in the memory module.
Delete a specific long-term memory by ID. Works across all backends: SQLite, ChromaDB, Mem0, and MongoDB.

Signature

def delete_long_term(memory_id: str) -> bool

Parameters

memory_id
str
required
The unique ID of the memory to delete

Returns

Returns
bool
True if memory was found and deleted, False otherwise