Docs menu · Reference

Deletes all vectors visible in the selected collection while preserving the collection itself.

Successful mutations return an acknowledgement that identifies the affected target, the mutation effect, and commit facts when the operation changed stored state.

Examples

Delete every vector in a collection.

CLI

$ strata vector collection create docs 3 cosine
$ strata vector upsert docs a [1.0,0.0,0.0]
$ strata vector delete-all docs
$ strata vector count docs

Wire

{"collection":"docs","dimension":3,"metric":"cosine","type":"vector_create_collection"}
{"collection":"docs","key":"a","type":"vector_upsert","vector":[1.0,0.0,0.0]}
{"collection":"docs","type":"vector_delete_all"}
{"collection":"docs","type":"vector_count"}

Parameters

NameTypeRequiredDescription
collectionstringyesCollection name.

Plus the optional scope: branch and space (default to the session branch and the "default" space).

Returns

MutationAck<VectorBulkDelete>.

Errors

Invocation

  • CLI: strata vector delete-all
  • Wire type: vector_delete_all

agents: this page as markdown → /docs/reference/vector/delete_all.md