All Products
Search
Document Center

Object Storage Service:delete-vector-bucket

Last Updated:Mar 20, 2026

The delete-vector-bucket command deletes a vector bucket.

Warning

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:DeleteVectorBucket permission on the target bucket (see Permissions)

Syntax

ossutil vectors-api delete-vector-bucket --bucket <bucket-name> [flags]

Parameters

ParameterTypeDescription
--bucketstringThe 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:

APIActionDescription
DeleteVectorBucketoss:DeleteVectorBucketDeletes a vector bucket

Example

Delete a vector bucket named examplebucket:

ossutil vectors-api delete-vector-bucket --bucket examplebucket
Note

The delete-vector-bucket command maps to the DeleteVectorBucket API operation.