Implemented the [deleteFile] method
This commit is contained in:
parent
6637f2f220
commit
167472154e
4 changed files with 9 additions and 18 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue