Deletes a vector bucket.
Notes
-
Delete all vector indexes in the vector bucket before deleting it.
-
This operation is irreversible. Back up important data before you proceed.
Permissions
An Alibaba Cloud account has full permissions by default. RAM users and roles have no permissions by default and must be granted permissions through a RAM policy overview or a bucket policy.
|
API |
Action |
Description |
|
DeleteVectorBucket |
|
Deletes a vector bucket. |
Request syntax
DELETE / HTTP/1.1
Host: examplebucket-123***456.cn-hangzhou-internal.oss-vectors.aliyuncs.com
Date: GMT Date
Authorization: SignatureValue
Request parameters
This operation uses only common request headers. Common request headers.
Response headers
This operation uses only common response headers. Common response headers.
Examples
Sample request
DELETE / HTTP/1.1
Host: exampebucket-123***456.cn-hangzhou-internal.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
SDKs that support this operation:
ossutil command-line interface
The corresponding ossutil command is delete-vector-bucket.
Error codes
|
Error code |
HTTP status code |
Description |
|
AccessDenied |
403 |
Permission to delete the vector bucket is denied. Only the bucket owner can delete the vector bucket. |
|
InvalidVectorBucketName |
400 |
The vector bucket name violates naming conventions. |
|
VectorBucketNotEmpty |
409 |
The vector bucket contains indexes and cannot be deleted. |