def delete_vector(self, hash_name, bucket_keys, data):
with self.redis_object.pipeline() as pipeline:<EOL><INDENT>for key in bucket_keys:<EOL><INDENT>redis_key = self._format_redis_key(hash_name, key)<EOL>rows = [(row, pickle.loads(row).get('<STR_LIT:data>'))<EOL>for row in self._get_bucket_rows(hash_name, key)]<EOL>for _, id_data in rows:<EOL><INDENT>if id_data == data:<EOL><INDENT>break<EOL><DEDENT><DEDENT>else:<EOL><INDENT>continue<EOL><DEDENT>pipeline.delete(redis_key)<EOL>pipeline.rpush(redis_key, *(row for row, id_data in rows<EOL>if id_data != data))<EOL><DEDENT>pipeline.execute()<EOL><DEDENT>
Deletes vector and JSON-serializable data in buckets with specified keys.