DELETE
/
delete
/
{namespace}
curl $UPSTASH_VECTOR_REST_URL/delete \
  -X DELETE \
  -H "Authorization: Bearer $UPSTASH_VECTOR_REST_TOKEN" \
  -d '[ "id-0", "id-1" ]'
{
    "result": {
        "deleted": 2
    }
}

You can delete one or more vectors by providing the vector ids to be deleted as a string or array of strings.

Vectors will be deleted from the default namespace by default. You can use a different namespace by specifying it in the request path.

Request

ids
string[]
required

A vector id or array of vector ids to delete.

This is not a field, you should use the array or the string as the request body itself.

Path

namespace
string
default:
""

The namespace to use. When no namespace is specified, the default namespace will be used.

Response

deleted
number

The number of the successfully deleted vectors.

curl $UPSTASH_VECTOR_REST_URL/delete \
  -X DELETE \
  -H "Authorization: Bearer $UPSTASH_VECTOR_REST_TOKEN" \
  -d '[ "id-0", "id-1" ]'
{
    "result": {
        "deleted": 2
    }
}