Whatever message this page gives is out now! Go check it out!

deleteAll

Last update:
May 18, 2026

Description

Deletes items from the vector store. It can be used to delete specific IDs or deleting items matching a metadata filter.

Syntax

vectorStoreClient.deleteAll(ids)
vectorStoreClient.deleteAll(filter)

Returns

Void

Parameters

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.

Example

<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>

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page