clear method
Clear function used to clear all documents under the given collections.
Implementation
@override
clear(collections) async {
await _sendMessage(
ClearMessageRequest(
paths: collections.map((collection) => collection.path).toList(),
),
);
}