I'm using Node 10 and the gcs API.
Trying to delete a folder and all its content, but I can't figure how.
Nothing found about deleting folders in the API documentation.
I tried the following code, that works with single files, but no with an entire folder:
const { Storage } = require('@google-cloud/storage');
const storage = new Storage({
projectId: 'my-id'
});
const bucket = storage.bucket('photos');
// Attempt to delete a folder and its files:
bucket
.file('album-1')
.delete()
.then(...)
.catch(...);