{"_id":"588b6df1e840643900a40a63","project":"55faeacad0e22017005b8265","category":{"_id":"56e1ccdfe63f910e00e59870","version":"55faeacad0e22017005b8268","project":"55faeacad0e22017005b8265","__v":5,"pages":["56e311b0cb6ef20e0084f24b","56e312096e602e0e00700b2d","56e312bcd46bc30e007bb99a","56e31309cb6ef20e0084f250","56e31357cb6ef20e0084f254"],"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-03-10T19:37:03.043Z","from_sync":false,"order":17,"slug":"write-ingest-vector-services-guide","title":"Write & Ingest Vector Services Guide"},"parentDoc":null,"user":"56267741db1eda0d001c3dbb","version":{"_id":"55faeacad0e22017005b8268","project":"55faeacad0e22017005b8265","__v":33,"createdAt":"2015-09-17T16:31:06.800Z","releaseDate":"2015-09-17T16:31:06.800Z","categories":["55faeacbd0e22017005b8269","55faf550764f50210095078e","55faf5b5626c341700fd9e96","55faf8a7825d5f19001fa386","560052f91503430d007cc88f","560054f73aa0520d00da0b1a","56005aaf6932a00d00ba7c62","56005c273aa0520d00da0b3f","5601ae7681a9670d006d164d","5601ae926811d00d00ceb487","5601aeb064866b1900f4768d","5601aee850ee460d0002224c","5601afa02499c119000faf19","5601afd381a9670d006d1652","561d4c78281aec0d00eb27b6","561d588d8ca8b90d00210219","563a5f934cc3621900ac278c","5665c5763889610d0008a29e","566710a36819320d000c2e93","56ddf6df8a5ae10e008e3926","56e1c96b2506700e00de6e83","56e1ccc4e416450e00b9e48c","56e1ccdfe63f910e00e59870","56e1cd10bc46be0e002af26a","56e1cd21e416450e00b9e48e","56e3139a51857d0e008e77be","573b4f62ef164e2900a2b881","57c9d1335fd8ca0e006308ed","57e2bd9d1e7b7220000d7fa5","57f2b992ac30911900c7c2b6","58adb5c275df0f1b001ed59b","58c81b5c6dc7140f003c3c46","595412446ed4d9001b3e7b37"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"v1","version_clean":"1.0.0","version":"1"},"__v":1,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-01-27T15:57:37.493Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"method":"delete","results":{"codes":[{"status":200,"name":"","code":"{\n  \"successfulItemIds\": [\n    \"vector-cb_test/848a27fe-26b3-44a8-b66f-889b4e9e1809\",\n    \"vector-cb_test/430c4454-ec4e-4415-9236-74a52bf47cc3\",\n    \"vector-cb_test/1ebff26e-e0bb-4287-8a39-1495072dfc60\",\n    \"vector-cb_test/7141a3ec-a6bf-4766-8ab0-c83689599abb\"\n  ],\n  \"errorMessages\": []\n}","language":"json"},{"name":"","code":"{\n  \"successfulItemIds\": [],\n  \"errorMessages\": [\n    \"vector-cb_test/848a27fe-26b3-44a8-b66f-889b4e9e1809: Item with id '848a27fe-26b3-44a8-b66f-889b4e9e1809' does not exist in index 'vector-cb_test'.\",\n    \"vector-cb_test/430c4454-ec4e-4415-9236-74a52bf47cc3: Item with id '430c4454-ec4e-4415-9236-74a52bf47cc3' does not exist in index 'vector-cb_test'.\",\n    \"vector-cb_test/1ebff26e-e0bb-4287-8a39-1495072dfc60: Item with id '1ebff26e-e0bb-4287-8a39-1495072dfc60' does not exist in index 'vector-cb_test'.\",\n    \"vector-cb_test/7141a3ec-a6bf-4766-8ab0-c83689599abb: Item with id '7141a3ec-a6bf-4766-8ab0-c83689599abb' does not exist in index 'vector-cb_test'.\"\n  ]\n}","language":"json","status":200}]},"settings":"589c616c29523b23003ba1df","examples":{"codes":[{"code":"Request:\n  DELETE /insight-vector/api/vectors\n\nHeaders:\n  Authorization: Bearer {token}\n  Content-Type: application/json\n  Accept: application/json\n\nBody:\n  {...list of indices and vector ids...}\n  \n\nResponse (success):\n  200 OK","language":"text"},{"code":"https://vector.geobigdata.io/insight-vector/api/vectors\n\nBody:\n[\n    \"/insight-vector/api/vector/vector-cb_test/848a27fe-26b3-44a8-b66f-889b4e9e1809\",\n    \"/insight-vector/api/vector/vector-cb_test/430c4454-ec4e-4415-9236-74a52bf47cc3\",\n    \"/insight-vector/api/vector/vector-cb_test/1ebff26e-e0bb-4287-8a39-1495072dfc60\",\n    \"/insight-vector/api/vector/vector-cb_test/7141a3ec-a6bf-4766-8ab0-c83689599abb\"\n]","language":"http"}]},"auth":"required","params":[],"url":"/insight-vector/api/vectors"},"isReference":false,"order":9,"body":"Note: Only the creator of the vector is able to delete the vector through the API.\nNote: If a vector has previously been deleted, the batch will still count as successful, but previously deleted vectors will show up in the \"errorMessages\" array.\n\nThe Body is composed in the following format:\n\n```\n[\n  \"/insight-vector/api/vector/:index/:vector_id\",\n  \"/insight-vector/api/vector/:index/:vector_id\",\n  \"/insight-vector/api/vector/:index/:vector_id\",\n  \"/insight-vector/api/vector/:index/:vector_id\"\n]\n```\nWhere `:index` is the vector index that the vector item is written to, and `:vector_id` is the vector item id.","excerpt":"The Batch Delete Vector API is used to remove multiple items from the specified vector index by ID.","slug":"batch-delete-vectors-via-item-id","type":"endpoint","title":"Batch Deleting Vectors via item ID"}

deleteBatch Deleting Vectors via item ID

The Batch Delete Vector API is used to remove multiple items from the specified vector index by ID.

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format


Documentation

Note: Only the creator of the vector is able to delete the vector through the API. Note: If a vector has previously been deleted, the batch will still count as successful, but previously deleted vectors will show up in the "errorMessages" array. The Body is composed in the following format: ``` [ "/insight-vector/api/vector/:index/:vector_id", "/insight-vector/api/vector/:index/:vector_id", "/insight-vector/api/vector/:index/:vector_id", "/insight-vector/api/vector/:index/:vector_id" ] ``` Where `:index` is the vector index that the vector item is written to, and `:vector_id` is the vector item id.

User Information

Try It Out


delete
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}