Delete points (original) (raw)

POST

/collections/:collection_name/points/delete

`| 1 | # Delete points by IDs | | -- | ------------------------------------------------------------------- | | 2 | curl -X POST \ | | 3 | 'http://localhost:6333/collections/collection_name/points/delete' \ | | 4 | --header 'api-key: ' \ | | 5 | --header 'Content-Type: application/json' \ | | 6 | --data-raw '{ | | 7 | "points": [ | | 8 | 0, | | 9 | 3, | | 10 | 100 | | 11 | ] | | 12 | }' | | 13 | | | 14 | # Delete points by filter | | 15 | curl -X POST \ | | 16 | 'http://localhost:6333/collections/collection_name/points/delete' \ | | 17 | --header 'api-key: ' \ | | 18 | --header 'Content-Type: application/json' \ | | 19 | --data-raw '{ | | 20 | "filter": { | | 21 | "must": [ | | 22 | { | | 23 | "key": "color", | | 24 | "match": { | | 25 | "value": "red" | | 26 | } | | 27 | } | | 28 | ] | | 29 | } | | 30 | }' |

`

`| 1 | { | | -- | ---------------------------- | | 2 | "usage": { | | 3 | "cpu": 1, | | 4 | "payload_io_read": 1, | | 5 | "payload_io_write": 1, | | 6 | "payload_index_io_read": 1, | | 7 | "payload_index_io_write": 1, | | 8 | "vector_io_read": 1, | | 9 | "vector_io_write": 1 | | 10 | }, | | 11 | "time": 0.002, | | 12 | "status": "ok", | | 13 | "result": { | | 14 | "status": "acknowledged", | | 15 | "operation_id": 1000000 | | 16 | } | | 17 | } |

`