Closed MohamedAliRashad closed 2 years ago
For those who will come with the same question, Here is what I found:
DeleteByMetaData
that takes the metadata string as input and deletes all samples in the tree with this metadata name (Not exposed in the documentation sadly).BuildWithMetaData
and AddWithMetaData
with True (Didn't work without it).index.AddWithMetaData(index_set, meta_data, index_set.shape[0], True, False)
# or
index.BuildWithMetaData(index_set, meta_data, index_set.shape[0], True, False)
# then
index.DeleteByMetaData(sample_name+'\n')
How to delete data in SPTAG using metadata ? I found no way to do this in one function, If it's unavailable can it be added ?