Skip to contents

Deletes vectors from an index by ID, filter, or all vectors.

Usage

vector_delete(
  index,
  ids = NULL,
  delete_all = FALSE,
  name_space = "",
  filter = NULL
)

Arguments

index

Name of the index

ids

Vector IDs to delete (character vector)

delete_all

Whether to delete all vectors (default: FALSE)

name_space

Namespace to delete from (default: "")

filter

Metadata filter for selective deletion (list)

Value

List with http response, content, and status_code

Examples

if (FALSE) { # \dontrun{
# Delete specific vectors
vector_delete("my-index", ids = c("vec1", "vec2"))

# Delete all vectors in namespace
vector_delete("my-index", delete_all = TRUE, name_space = "my-namespace")
} # }