Dart 2.x

delete

Deletes a document.


Arguments

Copied to clipboard!
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

Copied to clipboard!
await kuzzle
  .document
  .delete('nyc-open-data', 'yellow-taxi', 'some-id');