Python
from actian_vectorai_client import VectorAIClient
with VectorAIClient("localhost:6574") as client:
# Delete specific payload fields
client.points.delete_payload(
"my_collection",
keys=["tags"],
ids=[1, 2]
)
print("✓ Deleted 'tags' field from points 1, 2")import { VectorAIClient } from '@actian/vectorai-client';
const client = new VectorAIClient('localhost:6574');
await client.points.deletePayload('my_collection', ['tags'], { ids: [1, 2] });
console.log('Deleted "tags" key from points 1, 2');
client.close();curl -X POST "http://localhost:6575/collections/my_collection/points/payload/delete" \
-H "Content-Type: application/json" \
-H 'Authorization: Bearer <admin-jwt-or-access-token>' \
-d '{
"keys": ["tags"],
"points": [1, 2]
}'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "6575",
CURLOPT_URL => "http://localhost:6575/collections/{collection_name}/points/payload/delete",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'keys' => [
'tags'
],
'points' => [
1,
2
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:6575/collections/{collection_name}/points/payload/delete"
payload := strings.NewReader("{\n \"keys\": [\n \"tags\"\n ],\n \"points\": [\n 1,\n 2\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://localhost:6575/collections/{collection_name}/points/payload/delete")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"keys\": [\n \"tags\"\n ],\n \"points\": [\n 1,\n 2\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:6575/collections/{collection_name}/points/payload/delete")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"keys\": [\n \"tags\"\n ],\n \"points\": [\n 1,\n 2\n ]\n}"
response = http.request(request)
puts response.read_body{
"usage": {
"hardware": null
},
"time": 0.009149702,
"status": "ok",
"result": {
"operation_id": 0,
"status": "Completed"
}
}{
"status": {
"error": "Collection `my_collection` doesn't exist!"
},
"time": 123
}Points
Delete payload keys
Remove specific payload fields from the specified points. Only explicitly listed point IDs are supported; filter-based targeting is not available for this operation. If a key does not exist on a given point, it is silently ignored.
POST
/
collections
/
{collection_name}
/
points
/
payload
/
delete
Python
from actian_vectorai_client import VectorAIClient
with VectorAIClient("localhost:6574") as client:
# Delete specific payload fields
client.points.delete_payload(
"my_collection",
keys=["tags"],
ids=[1, 2]
)
print("✓ Deleted 'tags' field from points 1, 2")import { VectorAIClient } from '@actian/vectorai-client';
const client = new VectorAIClient('localhost:6574');
await client.points.deletePayload('my_collection', ['tags'], { ids: [1, 2] });
console.log('Deleted "tags" key from points 1, 2');
client.close();curl -X POST "http://localhost:6575/collections/my_collection/points/payload/delete" \
-H "Content-Type: application/json" \
-H 'Authorization: Bearer <admin-jwt-or-access-token>' \
-d '{
"keys": ["tags"],
"points": [1, 2]
}'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "6575",
CURLOPT_URL => "http://localhost:6575/collections/{collection_name}/points/payload/delete",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'keys' => [
'tags'
],
'points' => [
1,
2
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:6575/collections/{collection_name}/points/payload/delete"
payload := strings.NewReader("{\n \"keys\": [\n \"tags\"\n ],\n \"points\": [\n 1,\n 2\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://localhost:6575/collections/{collection_name}/points/payload/delete")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"keys\": [\n \"tags\"\n ],\n \"points\": [\n 1,\n 2\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:6575/collections/{collection_name}/points/payload/delete")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"keys\": [\n \"tags\"\n ],\n \"points\": [\n 1,\n 2\n ]\n}"
response = http.request(request)
puts response.read_body{
"usage": {
"hardware": null
},
"time": 0.009149702,
"status": "ok",
"result": {
"operation_id": 0,
"status": "Completed"
}
}{
"status": {
"error": "Collection `my_collection` doesn't exist!"
},
"time": 123
}Authorizations
Admin JWT or access token for authenticating requests to VectorAI DB.
Path Parameters
The name of the collection containing the target points.
Example:
"my_collection"
Body
application/json
Response
Payload keys deleted
Resource usage information for this request.
Show child attributes
Show child attributes
Time spent to process this request, in seconds.
Example:
0.009149702
Operation status. Returns ok on success.
Example:
"ok"
Operation result containing the status of the payload key deletion.
Show child attributes
Show child attributes
⌘I