<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def flush_all(self):
 """Drop all messages from all declared queues. """

        for queue_name in chain(self.queues, self.delay_queues):
            self.flush(queue_name)