Skip to content

Instantly share code, notes, and snippets.

@yasarix
Created March 1, 2019 18:27
Show Gist options
  • Save yasarix/7b791949bcc5a3fac4523d10030d3ea2 to your computer and use it in GitHub Desktop.
Save yasarix/7b791949bcc5a3fac4523d10030d3ea2 to your computer and use it in GitHub Desktop.
delete_firestore_indexes.sh
#!/bin/bash
for i in $(gcloud beta firestore indexes composite list --format=text|grep "name:"|awk -F ' ' '{print $2}')
do
echo "Deleting $i"
gcloud beta firestore indexes composite delete "${i}"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment