deleteCollection method

  1. @override
Future<bool> deleteCollection(
  1. String collection
)
override

Drop an entire collection (namespace) and all blobs within it.

Returns true if the collection existed and was removed.

Implementation

@override
Future<bool> deleteCollection(String collection) async {
  _ensureOpen();
  final existed = _storage.containsKey(collection);
  _storage.remove(collection);
  return existed;
}