delete_vectors

Use the delete vectors operation to delete vectors from a table by their IDs.

Removes the specified vectors and their associated metadata from the table. Essentially delete the rows from the table for the given IDs.

Parameters

Parameter Type Value Range Required Default Description Notes
table_name str Valid vector table identifier Yes No default Name of the vector table to delete from. Table must exist in the database schema.
ids list[str] Array of strings Yes No default List of vector IDs to delete. Example: ['id1', 'id2', 'id3']. Use explicit ID arrays.
debug_flags dict Object or NULL No None Debug or tracing flags for detailed logging. Optional; omit unless diagnostics are needed.

Raises Exception – InvalidTableNameFormatError may be raised when the table name is invalid. The operation also fails if the table does not exist.

Delete specific vectors

response = client.delete_vectors(
    table_name='products',
    ids=['prod_old_1', 'prod_old_2', 'prod_old_3']
)
print(response)

Return type DeleteVectorsResponse

Returns JSON response confirming deletion with count of deleted vectors. Example response:

{
    "message": "Deleted 3 vector records"
}