REST API Reference
cURL
curl --request POST \ --url https://api.example.com/v1/vectors/delete
X-API-Key
X-API-Key: cyborg_your_api_key_here
{ "index_name": "my_index", "index_key": "64_character_hex_string_representing_32_bytes", "ids": ["item_1", "item_2", "item_3"] }
Show parameters
{ "status": "success", "message": "Deleted 3 vectors" }
Show response fields
401
404
422
500
curl -X POST "http://localhost:8000/v1/vectors/delete" \ -H "X-API-Key: cyborg_your_api_key_here" \ -H "Content-Type: application/json" \ -d '{ "index_name": "my_index", "index_key": "your_64_character_hex_key_here", "ids": ["item_1"] }'
curl -X POST "http://localhost:8000/v1/vectors/delete" \ -H "X-API-Key: cyborg_your_api_key_here" \ -H "Content-Type: application/json" \ -d '{ "index_name": "my_index", "index_key": "your_64_character_hex_key_here", "ids": ["item_1", "item_2", "item_3", "item_4", "item_5"] }'
curl -X POST "http://localhost:8000/v1/vectors/delete" \ -H "X-API-Key: cyborg_your_api_key_here" \ -H "Content-Type: application/json" \ -d '{ "index_name": "cleanup_index", "index_key": "your_64_character_hex_key_here", "ids": [ "old_1", "old_2", "old_3", "old_4", "old_5", "temp_1", "temp_2", "temp_3", "temp_4", "temp_5", "test_1", "test_2", "test_3", "test_4", "test_5" ] }'
# First, verify items exist curl -X POST "http://localhost:8000/v1/vectors/get" \ -H "X-API-Key: cyborg_your_api_key_here" \ -H "Content-Type: application/json" \ -d '{ "index_name": "my_index", "index_key": "your_64_character_hex_key_here", "ids": ["item_to_delete"], "include": ["metadata"] }' # Then delete if confirmed curl -X POST "http://localhost:8000/v1/vectors/delete" \ -H "X-API-Key: cyborg_your_api_key_here" \ -H "Content-Type: application/json" \ -d '{ "index_name": "my_index", "index_key": "your_64_character_hex_key_here", "ids": ["item_to_delete"] }'
Was this page helpful?