def delete(self, bucket=None, ignore=False):
<EOL>buckets = bucket<EOL>if isinstance(bucket, six.string_types):<EOL><INDENT>buckets = [bucket]<EOL><DEDENT>elif bucket is None:<EOL><INDENT>buckets = reversed(self.buckets)<EOL><DEDENT>for bucket in buckets:<EOL><INDENT>if bucket not in self.buckets:<EOL><INDENT>if not ignore:<EOL><INDENT>message = '<STR_LIT>' % bucket<EOL>raise tableschema.exceptions.StorageError(message)<EOL><DEDENT>return<EOL><DEDENT>if bucket in self.__descriptors:<EOL><INDENT>del self.__descriptors[bucket]<EOL><DEDENT>table_name = self.__mapper.convert_bucket(bucket)<EOL>self.__service.tables().delete(<EOL>projectId=self.__project,<EOL>datasetId=self.__dataset,<EOL>tableId=table_name).execute()<EOL><DEDENT>self.__buckets = None<EOL>
https://github.com/frictionlessdata/tableschema-bigquery-py#storage