Implemented the [deleteFile] method

This commit is contained in:
Mariano Uvalle 2019-02-27 19:09:49 -06:00
parent 6637f2f220
commit 167472154e
4 changed files with 9 additions and 18 deletions

View file

@ -28,4 +28,9 @@ class FirebaseStorageProvider {
_storage.child('$folder/$fileId.$type');
return fileReference.putFile(file);
}
/// Deletes a file from the firebase storage bucket given its path.
Future<void> deleteFile(String path) {
return _storage.child(path).delete();
}
}