def clear(self):
        for key in self.iterkeys():
            self.discard(key)
See
dataset/ETHPy150Open babble/babble/include/jython/Lib/mailbox.py/Mailbox.clear--crossover with--dataset/ETHPy150Open tylertreat/BigQuery-Python/bigquery/client.py/BigQueryClient.dataset_resource