delete method

Future<void> delete(
  1. String index,
  2. String collection,
  3. String id, {
  4. bool waitForRefresh = false,
})

Deletes a document.

Implementation

Future<void> delete(
  String index,
  String collection,
  String id, {
  bool waitForRefresh = false,
}) async {
  await kuzzle.query(KuzzleRequest(
    controller: name,
    action: 'delete',
    index: index,
    collection: collection,
    uid: id,
    waitForRefresh: waitForRefresh,
  ));
}