delete_memories_matching
Method
This is a method of the Memory class in the memory module.Delete memories matching a search query. Useful for bulk cleanup of related memories, e.g., all image-related context after finishing an image analysis session.
Signature
Parameters
Search query to match memories
Optional type (‘short_term’ or ‘long_term’)
Maximum number of memories to delete
Returns
Number of memories deleted

