delete_history_matching
Method
This is a method of the Agent class in the agent module.Delete all messages matching a pattern. Useful for removing all image-related messages after processing.
Signature
Parameters
Substring to match in message content
Returns
Number of messages deleted

