You need to enable JavaScript to run this app.
Torch Object Storage

Torch Object Storage

Copy page
Download PDF
Vector
DeleteVectors
Copy page
Download PDF
DeleteVectors
Description​
Batch delete vectors from the vector index based on vector keys.​
Request syntax​
The endpoint must use the Bucket Endpoint.​
​
POST /DeleteVectors HTTP/1.1​
Host: {VectorBucketName}-{AccountID}.tosvectors-cn-beijing.volces.com​
Authorization: authorization string​
Date: Mon, 10 Dec 2025 12:49:14 GMT​
​
​
{​
"vectorBucketName": "test-vector-bucket",​
"indexName":"test-index",​
"keys": ["key0", "key1"],​
}​
​
Request parameters and headers ​
None.​
Request body elements​
​
Field name​
Type​
Required​
Example value​
Description​
vectorBucketName​
String​
Yes​
test-vector-bucket​
Name of the vector bucket.​
indexName​
String​
Yes​
test-index​
Name of the vector index.​
keys​
string[]​
Yes​
["key0", "key1"]​
You want to return the list of vector names for its attributes.​
Number of array items: at least 1 item, at most 100 items.​
String length: at least 1 character, at most 1024 characters.​
​
Response headers​
For common response headers, see Common parameters.​
Response body elements​
If the operation succeeds, the service returns an HTTP 200 status code with an empty response body.​
If the operation fails, it returns the error code defined in the Response code.​
Sample request​
​
POST /DeleteVectors HTTP/1.1​
Host: test-vector-bucket-1111.tosvectors-cn-beijing.volces.com​
Authorization: authorization string​
Date: Mon, 10 Dec 2025 12:49:14 GMT​
​
{​
"vectorBucketName": "test-vector-bucket",​
"indexName":"test-index",​
"keys": ["key0", "key1"]​
}​
​
Sample response​
​
HTTP/1.1 200 OK​
x-tos-id-2: 797014003c90a9b694003c9-b15a995-1vV80n-CVB-cb-tos-1az-front-azd-vectors-2 ​
x-tos-request-id: 797014003c90a9b694003c9-b15a995-1vV80n-CVB-cb-tos-1az-front-azd-vectors-2 ​
Date: Mon, 10 Dec 2025 12:49:14 GMT​
server: TosServer​
Content-Length: 0​
​
​
Last updated: 2026.01.04 14:21:23