delete_memory
Method
This is a method of the Memory class in the memory module.Delete a specific memory by ID. This is the unified deletion method that searches across all memory types and all backends (SQLite, ChromaDB, Mem0, MongoDB). Particularly useful for:
- Cleaning up image-based memories after processing to free context window
- Removing outdated or incorrect information
- Privacy compliance (selective erasure)
Signature
Parameters
The unique ID of the memory to delete
Optional type hint to narrow search: ‘short_term’, ‘long_term’ If None, searches all types.
Returns
True if memory was found and deleted, False otherwise

