SDK
SDK Dart v2.x
2

truncate #

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


Copied to clipboard!
Future<Map<String, dynamic>> truncate(String index, String collection)

Arguments Type Description
index
String
Index name
collection
String
Collection name

Usage #

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