Deletes specified vector data from a vector index.
Notes
-
Batch deletion is supported.
-
Deletion is irreversible. Proceed with caution.
Permissions
An Alibaba Cloud account has all permissions by default. RAM users and RAM roles have no permissions by default. An Alibaba Cloud account or account administrator must grant permissions by using a RAM policy or a bucket policy.
|
API |
Action |
Description |
|
DeleteVectors |
|
Deletes vector data. |
Command format
ossutil vectors-api delete-vectors --bucket value --index-name value --keys value [flags]
Parameters
|
Parameter |
Type |
Description |
|
--bucket |
string |
The name of the vector bucket. |
|
--index-name |
string |
The name of the index. |
|
--keys |
strings |
The vector primary keys to delete. If a specified primary key does not exist, no error is reported and no result is returned for that key. Limit: The number of unique keys must be between 1 and 500, inclusive. |
-
The delete-vectors command calls the DeleteVectors API operation.
-
For supported global command line options, see Global command line options.
Examples
Delete the vectors with primary keys `key` and `key1` from the index named `index` in the vector bucket named `examplebucket`.
ossutil vectors-api delete-vectors --bucket examplebucket --index-name index --keys key,key1