clear: Clear all messages
This is a method of the Session class in the session module.
def clear(&mut self) -> Result<()>