delete method

Future<void> delete(
  1. String collectionID,
  2. String documentID
)

Implementation

Future<void> delete(String collectionID, String documentID) {
  String fileName = "$collectionID/$documentID.json";
  final Reference storageRef = storageReference.child(fileName);
  return storageRef.delete();
}