deleteFilesWindows function

Future<void> deleteFilesWindows(
  1. Reference ref
)

Implementation

Future<void> deleteFilesWindows(firebase_dart.Reference ref) async {
  firebase_dart.Reference reference = ref;
  firebase_dart.ListResult result = await reference.listAll();
  for (var item in result.items) {
    await ref.child(item.name).delete();
  }
  var dirs = result.prefixes;
  for (var dir in dirs) {
    await deleteFilesWindows(reference.child(dir.name));
  }
}