g-viet / til

Today I learned
6 stars 0 forks source link

Delete all firebase cloud functions by bash #39

Open g-viet opened 6 years ago

g-viet commented 6 years ago
gcloud auth activate-service-account $FIREBASE_ACCOUNT --key-file ./path/to/credential/file --project my-project-id
gcloud functions list | awk 'NR>1{print $1}' | xargs -I% gcloud --project my-project-id functions delete % --quiet