destroyCollection method

Future<void> destroyCollection()

Implementation

Future<void> destroyCollection() async {
  try {
    await collections.delete(DeleteCollection(collectionName: namespace));
    verbose("Destroyed Collection for $namespace");
  } catch (e) {
    error("Failed to destroy collection for $namespace: $e");
  }
}