Whatever message this page gives is out now! Go check it out!
vectorStoreClient.deleteAll(ids)vectorStoreClient.deleteAll(filter)Parameter | Type | Required | Description |
id | Array | No | A list of specific IDs to delete. |
filter | Struct | No | A metadata filter struct (see search for operators). Deletes all items matching the criteria. |
(None) | - | No | If no argument is provided, all items in the store are deleted. |
<cfscript>
vectorstoreclient = VectorStore();
vectorstoreclient.addAll([
{
"text": "Keep me",
"metadata": { "env": "prod", "retain": true }
},
{
"text": "Remove me",
"metadata": { "env": "prod", "retain": false }
}
]);
vectorstoreclient.deleteAll({ "retain": false, "env": "prod" });
</cfscript>