Skip to main content

bulk_delete_points

Function bulk_delete_points 

Source
pub async fn bulk_delete_points(
    __arg0: State<Arc<AppState>>,
    __arg1: Path<String>,
    __arg2: Json<BulkDeleteRequest>,
) -> impl IntoResponse
Expand description

Deletes multiple points by ID in a single request.

Accepts a JSON body with a list of point IDs. All IDs are passed to the underlying Collection::delete(&[u64]) in one call, which is more efficient than individual deletions.

Returns the number of points that were requested for deletion. Points that do not exist are silently skipped (idempotent delete).

§Empty payload semantics

{ "ids": [] } is treated as a successful no-op: the response is 200 OK with deleted_count = 0. This matches Kubernetes-style idempotent batch APIs and lets callers send empty batches without special-casing on the client side.

§Limits

Batches larger than MAX_BULK_DELETE_SIZE (10000) are rejected with 400 BAD_REQUEST.