Skip to main content

Batch Delete Vectors

Delete multiple vectors by their external IDs in a single request.

POST /v1/collections/{name}/delete_batch

Request

Headers:

x-api-key: your-api-key
Content-Type: application/json

Path Parameters:

ParameterDescription
nameCollection name

Body:

FieldTypeRequiredDescription
external_idsstring[]List of external IDs to delete

Example

curl -X POST http://localhost:8000/v1/collections/articles/delete_batch \
-H "x-api-key: test-key" \
-H "Content-Type: application/json" \
-d '{"external_ids": ["doc-1", "doc-2", "doc-3"]}'

Response

{
"status": "success",
"data": {
"deleted_count": 3,
"deleted_ids": ["doc-1", "doc-2", "doc-3"]
}
}

Errors

CodeReason
404Collection not found
401Missing or invalid API key
403API key does not have write permission