You can reset a namespace by calling the reset() method on the index or namespace.If the reset() method is called on the index, only the default namespace will be reset, not the whole index.
Copy
Ask AI
use Upstash\Vector\Index;$index = new Index( url: "<UPSTASH_VECTOR_REST_URL>", token: "<UPSTASH_VECTOR_REST_TOKEN>",);$index->reset();