Documentation Index
Fetch the complete documentation index at: https://upstash.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
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 Index
index = Index.from_env()
index.reset()
Reset Namespace Example
Resets the given namespace.
from upstash_vector import Index
index = Index.from_env()
index.reset(namespace="ns")
Reset All Namespaces
Resets all the namespaces of an index.
from upstash_vector import Index
index = Index.from_env()
index.reset(all=True)