Deletes the selected vector collection from the current branch and space. The current wire response is a transitional boolean status.
Successful mutations return an acknowledgement that identifies the affected target, the mutation effect, and commit facts when the operation changed stored state.
Examples
Delete a collection.
CLI
$ strata vector collection create temp 3 cosine
$ strata vector collection delete temp
$ strata vector collection list
Wire
{"collection":"temp","dimension":3,"metric":"cosine","type":"vector_create_collection"}
{"collection":"temp","type":"vector_delete_collection"}
{"type":"vector_list_collections"}
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
collection | string | yes | Collection name. |
Plus the optional scope: branch and space (default to the session branch and the "default" space).
Returns
MutationAck<VectorCollectionDelete>.
Errors
failed_precondition.engine.runtime_closednot_found.engine.branchinvalid_argument.engine.product_spaceinvalid_argument.engine.vector_collectioninvalid_argument.engine.vector_keynot_found.engine.vector_collection
Invocation
- CLI:
strata vector collection delete - Wire type:
vector_delete_collection