Created
March 1, 2019 18:27
-
-
Save yasarix/7b791949bcc5a3fac4523d10030d3ea2 to your computer and use it in GitHub Desktop.
delete_firestore_indexes.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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