Angular: 6.0.3
Firebase: 5.0.4
AngularFire: 5.0.0-rc.10
Other (e.g. Ionic/Cordova, Node, browser, operating system): Windows
Steps to set up and reproduce
this._storage.ref(PATH_TO_FILE).delete();
* Errors in the JavaScript console *
FirebaseStorageError聽{code_: "storage/invalid-argument", message_: "Firebase Storage: Invalid argument in 'ref' at ind鈥hild path but got a URL, use refFromURL instead. ...}
To delete the file without an error
Not deleting the file and throws an error
_Related to #1687_
It works like this
this._storage.storage.refFromURL(post.coverPic).delete()
Most helpful comment
It works like this