def _delete_bucket(self, bucket_name, keys=[]):
    keys = (keys if isinstance(keys, list) else [keys])
    objects = [{'Key': k} for k in keys]
    if objects:
        self.s3_client.delete_objects(Bucket=bucket_name, Delete={'Objects': objects})
    self.s3_client.delete_bucket(Bucket=bucket_name)
def _delete_bucket(self, bucket_name, keys=[]):
    keys = (keys if isinstance(keys, list) else [keys])
    objects = [{'Key': k} for k in keys]
    if objects:
        self.s3_client.delete_objects(Bucket=bucket_name, Delete={'Objects': objects})
    self.s3_client.delete_bucket(Bucket=bucket_name)