deleteBucket method

Future<void> deleteBucket()

Implementation

Future<void> deleteBucket() async {
  Directory dir = _bucketDir();
  String name = storageBucket.id;
  // deleting the bucket from the buckets paths map
  await BucketsStore.bucketsBox.delete(name);
  // delete the bucket folder
  await dir.delete(recursive: true);
}