SDK
SDK Dart v2.x
2

delete #

Deletes a document.


Arguments #

Future<void> delete(
    String index,
    String collection,
    String id, {
    bool waitForRefresh = false,
  })
ArgumentsTypeDescription
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');