Guest User

Untitled

a guest
Oct 17th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. let storageRef = firebase.storage().ref('newimage.jpg');
  2. storageRef.delete()
  3. .then(() => {
  4. console.log('success')
  5. })
  6.  
  7. Here I can easily delete a file from storage of firebase, but I have the file name only which is 'newimage' , But I don't know the extention name, Whice would be jpeg,jpg,png etc.
Add Comment
Please, Sign In to add comment