delete method

  1. @override
Future<void> delete(
  1. String remotePath
)
override

Deletes the file at remotePath from the backend.

Throws if the file does not exist or the caller lacks permission.

Implementation

@override
Future<void> delete(String remotePath) async {
  try {
    await _storage.ref(remotePath).delete();
  } catch (error) {
    throw Exception(
      'FirebaseStorageUploader.delete failed for '
      '"$remotePath": $error',
    );
  }
}