SDK
SDK Dart v2.x
2

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');