Skip to content

Files

Latest commit

4a6c957 · Aug 3, 2022

History

History
40 lines (31 loc) · 585 Bytes

delete_documents_api.md

File metadata and controls

40 lines (31 loc) · 585 Bytes

Delete Documents API

DELETE /indices/<NAME>/documents

Path parameters

  • <NAME>: (Required, string) Name of the index you want to delete documents.

Request body

{"id": <ID>}
{"id": <ID>}
{"id": <ID>}
...
{"id": <ID>}
  • <ID>: (Required, String) Document ID to be unique in the index.

Response

{
}

Examples

% curl -XDELETE \
       --header 'Content-Type: application/json' \
       --data-binary '
       {"id":"1"}
       {"id":"2"}
       {"id":"3"}
       ' \
       http://localhost:8000/indices/example/documents