delete #
Deletes a document.
Arguments #
Future<void> delete(
String index,
String collection,
String id, {
bool waitForRefresh = false,
})
Arguments | Type | Description |
---|---|---|
index | String | Index |
collection | String | Collection |
id | String | Document ID |
waitForRefresh | bool ( false ) | If set to true , Kuzzle will wait for the persistence layer to finish indexing |
Usage #
await kuzzle
.document
.delete('nyc-open-data', 'yellow-taxi', 'some-id');
Edit this page on Github(opens new window)