Example Calls

Reset

Method

The reset method allows you to clear all vectors and metadata from a particular namespace or all namespaces of an index.

Reset Example

Resets the default namespace.

from upstash_vector import Indexindex = Index.from_env()index.reset()

Reset Namespace Example

Resets the given namespace.

from upstash_vector import Indexindex = Index.from_env()index.reset(namespace="ns")

Reset All Namespaces

Resets all the namespaces of an index.

from upstash_vector import Indexindex = Index.from_env()index.reset(all=True)
Loading search…