Delete
Every vector in our database has an ID defined by you. This ID is used to reference the vectors you want to delete. We’ll use thedelete()
method to instruct the SDK to delete vectors 1, 2, and 3, as shown below:
Delete using ID prefixes
In the case that you logically group your vectors by a common prefix, you can delete all those vectors at once using the code below:Delete using a metadata filter
If you want to delete vectors based on some query result over the metadata, you can use theVectorDeleteByMetadataFilter
class as shown below: