Delete firebase web folder

Asked

Viewed 371 times

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()

1 answer

2


  • It is then possible to clean the folder?

  • 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)

  • You can put an example of gsutil in the question?

  • See the firebase-talk link I put in the reply. Kato Richardson’s post shows an example of gsutil

Browser other questions tagged

You are not signed in. Login or sign up in order to post.