2
How to delete a folder from Storage?
To delete a file I use:
firebase.storage().ref('pasta/arquivo.png').delete()
But it doesn’t work if I use it directly in the folder:
firebase.storage().ref('pasta').delete()
2
How to delete a folder from Storage?
To delete a file I use:
firebase.storage().ref('pasta/arquivo.png').delete()
But it doesn’t work if I use it directly in the folder:
firebase.storage().ref('pasta').delete()
2
To documentation says the method delete()
serves only to delete files. It is not yet possible to delete folders as this indicates firebase-talk forum.
Browser other questions tagged javascript firebase google-storage
You are not signed in. Login or sign up in order to post.
It is then possible to clean the folder?
– Costamilam
Neither. Because Firebase Storage has no method capable of showing all the files that are in that folder in order to clean it. Unfortunately, so far the only way to delete folders and their content is via the Firebase Console or via the command line (
gsutil
)– Rosário Pereira Fernandes
You can put an example of
gsutil
in the question?– Costamilam
See the firebase-talk link I put in the reply. Kato Richardson’s post shows an example of gsutil
– Rosário Pereira Fernandes