How to delete all files in a firebase storage directory

I have a firebase storage path that looks like this. firebase.storage().ref(‘temp/test’) the “test” folder has about 25-50 files. I know there is not a way to delete the whole directory in firebase but Is there a way to iterate through all the files in a directory and deleting them one by one? Answer Is there a way to iterate through all the files in a directory and deleting them one by one? Yes, you can use the listAll() method, as follows: Note that: This method is only available for Firebase Rules Version 2 (add rules_version = ‘2’; at the top

uploading and downloading storage images in firebase with VueJs

im building this simple application using Vue/vuex and firebase where i want to facilitate users upload images and once the app gets updated those images get reached from firebase storage , modifying the current database with the new uploaded image Here is my code: the images get push to the firebase storaged but once i try to modify the database adding this new element (image) using downloadUrls, doesnt work. Any advice please?….thanks in advance!!! Answer You need to use the getDownloadURL() method from the JavaScript SDK, which is asynchronous and returns a Promise that resolves with the download URL. So,