

def delete_table(self, dataset, table):
    'Delete a table from the dataset.\n\n        Parameters\n        ----------\n        dataset : str\n            The dataset to delete the table from.\n        table : str\n            The name of the table to delete\n\n        Returns\n        -------\n        Union[bool, dict]\n            bool indicating if the table was successfully deleted or not,\n            or response from BigQuery if swallow_results is set for False.\n        '
    try:
        response = self.bigquery.tables().delete(projectId=self.project_id, datasetId=dataset, tableId=table).execute()
        if self.swallow_results:
            return True
        else:
            return response
    except HttpError as e:
        logger.error('Cannot delete table {0}.{1}\nHttp Error: {2}'.format(dataset, table, e.content))
        if self.swallow_results:
            return False
        else:
            return {
                
            }

dataset/ETHPy150Open tylertreat/BigQuery-Python/bigquery/client.py BigQueryClient.delete_table/original