[myfirebasestorageapp].appspot.com/users/user1/file1.png
'users' is a folder
'user1' is a folder
'file1.png' is a file under user1
When I try to delete a specific file in storage (i.e. file1.png) with the code below, everything works. The file gets deleted:
const deletefilePath = 'users/user1/file1.png';
const gcFile = bucket.file(deletefilePath);
gcFile.delete((err,res)=>console.log(err||res));
But if I want to delete the whole folder for user1 it doesn't work:
const deletefilePath = 'users/user1/';
const gcFile = bucket.file(deletefilePath);
gcFile.delete((err,res)=>console.log(err||res));