langchain/memory/chat_message_histories/mongodb.py/MongoDBChatMessageHistory/clear
class MongoDBChatMessageHistory:    def clear(self) -> None:
        """Clear session memory from MongoDB"""
        from pymongo import errors

        try:
            self.collection.delete_many({"SessionId": self.session_id})
        except errors.WriteError as err:
            logger.error(err)