SDK
SDK Dart Null Safety v3.x
2

truncate #

Removes all documents from a collection, while keeping the associated mappings.


Future<Map<String, dynamic>> truncate(String index, String collection)

ArgumentsTypeDescription
index
String
Index name
collection
String
Collection name

Usage #

await kuzzle
  .collection
  .truncate('nyc-open-data', 'yellow-taxi');