(self)
Delete all messages.
Delete all messages.
Delete all messages .
def clear(self):
        """Delete all messages."""
        for key in self.keys():
            self.discard(key)
def clear ( self ) : for key in self . keys ( ) : self . discard ( key )