def delete_keys(self, *args, **kwargs):
ikeys = iter(kwargs.get('<STR_LIT>', args[<NUM_LIT:0>] if args else []))<EOL>while True:<EOL><INDENT>try:<EOL><INDENT>key = ikeys.next()<EOL><DEDENT>except StopIteration:<EOL><INDENT>break<EOL><DEDENT>if isinstance(key, basestring):<EOL><INDENT>mimicdb.backend.srem(tpl.bucket % self.name, key)<EOL>mimicdb.backend.delete(tpl.key % (self.name, key))<EOL><DEDENT>elif isinstance(key, BotoKey) or isinstance(key, Key):<EOL><INDENT>mimicdb.backend.srem(tpl.bucket % self.name, key.name)<EOL>mimicdb.backend.delete(tpl.key % (self.name, key.name))<EOL><DEDENT><DEDENT>return super(Bucket, self).delete_keys(*args, **kwargs)<EOL>
Remove each key or key name in an iterable from the bucket set.