The delete-vector-bucket command deletes a vector bucket.
Deleting a vector bucket permanently removes the bucket and all its stored vector indexes. This operation cannot be undone. Back up any data you need before proceeding.
Prerequisites
Before you begin, ensure that you have:
Deleted all vector indexes in the bucket
The
oss:DeleteVectorBucketpermission on the target bucket (see Permissions)
Syntax
ossutil vectors-api delete-vector-bucket --bucket <bucket-name> [flags]Parameters
| Parameter | Type | Description |
|---|---|---|
--bucket | string | The name of the vector bucket to delete |
For supported global flags, see Supported global command-line options.
Permissions
Alibaba Cloud accounts have this permission by default. Resource Access Management (RAM) users and RAM roles do not. To grant access, attach a RAM policy or a bucket policy that includes the following action:
| API | Action | Description |
|---|---|---|
| DeleteVectorBucket | oss:DeleteVectorBucket | Deletes a vector bucket |
Example
Delete a vector bucket named examplebucket:
ossutil vectors-api delete-vector-bucket --bucket examplebucketThe delete-vector-bucket command maps to the DeleteVectorBucket API operation.