deleteImageFromFirebaseByUrl static method

Future<void> deleteImageFromFirebaseByUrl(
  1. String imageUrl
)

Deletes a single image from Firebase Storage by its URL.

The imageUrl parameter specifies the URL of the image to delete. If the deletion fails, an exception is thrown.

Implementation

static Future<void> deleteImageFromFirebaseByUrl(
  String imageUrl,
) async {
  try {
    await deleteMultipleImagesFromFirebaseByUrls([imageUrl]);
  } catch (e) {
    throw Exception('deleteImageFromFirebaseByUrl() $e');
  }
}