Skip to main content

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.

The delete method allows you to delete vectors from your index using various criteria. You can delete vectors by their IDs, by ID prefix, or using metadata filters.

Arguments

IDs
string[] | number[] | string | number
required
One or more vector IDs to delete.
OR
DeletePayload
object
required
Options
DeleteCommandOptions

Response

Response
DeleteResult
required
const response = await index.delete(["2", "3"]);
// { deleted: 2 }