All Products
Search
Document Center

Object Storage Service:delete-vector-index

Last Updated:Mar 20, 2026

Use the delete-vector-index command to permanently delete a vector index from a bucket.

Warning

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:DeleteVectorIndex permission, or a RAM user or RAM role granted this permission via a RAM policy or bucket policy

  • The 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.

APIActionDescription
DeleteVectorIndexoss:DeleteVectorIndexDeletes a vector index

Delete a vector index

Command syntax

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

Parameters

ParameterTypeDescription
--bucketstringThe name of the vector bucket
--index-namestringThe name of the index to delete

For supported global flags, see Supported global command line options.

Note

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