Delete Long Term • AI Agent SDK
delete_long_term: Delete a specific long-term memory by ID.
delete_long_term
Method
</div>
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) -> boolParameters
ParamField
strThe unique ID of the memory to delete
Returns
ResponseField
boolTrue if memory was found and deleted, False otherwise
Uses
delete_memoryconn.executeconn.commitdeletedelete_one
Used By
Source
View on GitHubpraisonaiagents/memory/memory.py at line 1528