Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Latest commit

 

History

History
45 lines (30 loc) · 1.09 KB

File metadata and controls

45 lines (30 loc) · 1.09 KB
code type title description
true
page
mdeleteDocument
Collection:mdeleteDocument

mDeleteDocument

Delete multiple Documents according to the input IDs.


mDeleteDocument(documentIds, [options], callback)

Arguments Type Description
documentIds String[] Array of IDs of documents to delete
options JSON Object Optional parameters
callback function Callback handling the response

Options

Option Type Description Default
queuable boolean Make this request queuable or not true

Callback Response

Returns a JSON object containing the raw Kuzzle response. Can return a 206 partial error in cases where some documents could not be deleted.

Usage

<<< ./snippets/mdelete-document-1.java

Callback response:

["doc1", "doc2"]