truncate #
Removes all documents from a collection, while keeping the associated mappings.
Future<Map<String, dynamic>> truncate(String index, String collection)
Arguments | Type | Description |
---|---|---|
index | String | Index name |
collection | String | Collection name |
Usage #
await kuzzle
.collection
.truncate('nyc-open-data', 'yellow-taxi');
Edit this page on Github(opens new window)