The delete method allows you to delete vectors from your index using various criteria. You can delete vectors by their IDs, by ID prefix, or using metadata filters. 
Arguments IDs
string[] | number[] | string | number 
required
One or more vector IDs to delete. 
OR You can only use one of the ids, prefix, or filter fields.
ids
string[] | number[] | string | number 
One or more vector IDs to delete. 
A string prefix to match vector IDs for deletion. All vectors with IDs
starting with this prefix will be deleted. 
A metadata filter for vector deletion. See Metadata
Filtering  for more information. Deleting vectors with metadata filter is a O(N) operation that performs a full
scan. Therefore, it might be slow for large indexes. 
Namespace to delete from. If not set, default namespace is used. 
Response The number of vectors that were successfully deleted. 
Delete by IDs Array
Delete Single ID
Delete by Prefix
Delete by Filter
const  response  =  await  index . delete ([ "2" ,  "3" ]); // { deleted: 2 }