def delete_vector(self, data, v=None):
<EOL>for lshash in self.lshashes:<EOL><INDENT>if v is None:<EOL><INDENT>keys = self.storage.get_all_bucket_keys(lshash.hash_name)<EOL><DEDENT>else:<EOL><INDENT>keys = lshash.hash_vector(v)<EOL><DEDENT>self.storage.delete_vector(lshash.hash_name, keys, data)<EOL><DEDENT>
Deletes vector v and his id (data) in all matching buckets in the storage.
The data argument must be JSON-serializable.