Skip to content

Instantly share code, notes, and snippets.

@saurav12994
saurav12994 / index.js
Created July 31, 2018 05:42
Delete Folder in Firebase cloud storage using Cloud Function
I hava a folder inside CustomerDocuments in Firebase cloud storage name xyz which contains many types of file like .pdf,.txt,.png etc.
function deletefromstorage(quoteiddelete)
{
//quoteiddelete contains folder name in CustomerDocuments which we want to delete.
const Storage = require('@google-cloud/storage');
const storage = new Storage();
const srcBucketName = 'abc.apot.com';