All Products
Search
Document Center

Object Storage Service:DeleteVectorBucket

Last Updated:Feb 11, 2026

You can call DeleteVectorBucket to delete a vector bucket.

Important notes

  • You must delete all vector indexes in the vector bucket before deleting the bucket.

  • This operation is irreversible. Back up important data before you proceed.

Permissions

An Alibaba Cloud account has full permissions by default. RAM users and RAM roles under an Alibaba Cloud account have no permissions by default. An Alibaba Cloud account or account administrator must grant permissions using a RAM policy or a bucket policy.

API

Action

Description

DeleteVectorBucket

oss:DeleteVectorBucket

Delete a vector bucket.

Request syntax

DELETE / HTTP/1.1
Host: examplebucket-123***456.cn-hangzhou.oss-vectors.aliyuncs.com
Date: GMT Date
Authorization: SignatureValue

Request parameters

This operation uses only common request headers. For more information, see Common HTTP request headers.

Response headers

This operation uses only common response headers. For more information, see Common HTTP response headers.

Examples

Sample request

DELETE / HTTP/1.1
Host: exampebucket-123***456.cn-hangzhou.oss-vectors.aliyuncs.com
Accept-Encoding: identity
User-Agent: aliyun-sdk-python/2.6.0(Windows/7/AMD64;3.7.0)
Accept: */*
Connection: keep-alive
date: Tue, 15 Jan 2019 08:19:04 GMT
authorization: OSS4-HMAC-SHA256 Credential=LTAI********************/20250417/cn-hangzhou/oss/aliyun_v4_request,Signature=a7c3554c729d71929e0b84489addee6b2e8d5cb48595adfc51868c299c0c218e
Content-Length: 0

Sample response

HTTP/1.1 204 No Content
Server: AliyunOSS
Date: Tue, 15 Jan 2019 08:19:04 GMT
Content-Length: 0
Connection: keep-alive
x-oss-request-id: 5C3D9778CC1C2AEDF85B****
x-oss-server-time: 190

SDK

The following SDKs support DeleteVectorBucket:

ossutil command-line tool

For the ossutil command that corresponds to DeleteVectorBucket, see delete-vector-bucket.

Error codes

Error code

HTTP status code

Description

AccessDenied

403

You do not have permission to delete this vector bucket. Only the owner of the vector bucket can delete it.

InvalidVectorBucketName

400

The vector bucket name does not meet naming requirements.

VectorBucketNotEmpty

409

The vector bucket contains indexes and cannot be deleted.