Use the delete-vector-index command to permanently delete a vector index from a bucket.
Deleting a vector index permanently removes all vector data in the index. This operation cannot be undone. Back up any data you need to keep before proceeding.
Potential impacts
Deleting a vector index has the following effects:
All vector data stored in the index is permanently deleted.
The operation cannot be reversed.
Prerequisites
Before you begin, ensure that you have:
An Alibaba Cloud account with the
oss:DeleteVectorIndexpermission, or a RAM user or RAM role granted this permission via a RAM policy or bucket policyThe name of the bucket and the vector index to delete
Permissions
By default, an Alibaba Cloud account has full permissions. A Resource Access Management (RAM) user or RAM role has no permissions by default. Grant the required permission using a RAM policy or bucket policy.
| API | Action | Description |
|---|---|---|
DeleteVectorIndex | oss:DeleteVectorIndex | Deletes a vector index |
Delete a vector index
Command syntax
ossutil vectors-api delete-vector-index --bucket <bucket-name> --index-name <index-name> [flags]Parameters
| Parameter | Type | Description |
|---|---|---|
--bucket | string | The name of the vector bucket |
--index-name | string | The name of the index to delete |
For supported global flags, see Supported global command line options.
The delete-vector-index command corresponds to the DeleteVectorIndex API operation.
Example
Delete the vector index named index from the bucket named examplebucket:
ossutil vectors-api delete-vector-index --bucket examplebucket --index-name index