delete static method

dynamic delete({
  1. required String collectionName,
})

Implementation

static delete({
  required String collectionName,
}) async {
  var ref = getRef(
    collectionName: collectionName,
  );

  try {
    if (Platform.isWindows) {
      return await ref.delete();
    } else {
      return await ref.delete();
    }
  } on Exception catch (_) {
    print(_);
  }
}