I can't seem to find the documentation for firestore.indexes.json. I want to remove certain single-field index with it rather than using the console.
Take a look here: https://github.com/firebase/firebase-tools/issues/1127
What you're asking currently doesn't work - firestore.indexes.json just appends, but never removes.
Thanks for jumping in @LFDM.
@universse as stated above, right now the indexes file is "append only" and never deletes an index. However I think what you want to do is possible, since removing an index on a single field is done by adding an empty index configuration.
So let's say you want no indexes on myfield in the mycollection collection:
firestore.indexes.json
{
indexes: [],
fieldOverrides: [
collectionGroup: "mycollection",
fieldPath: "myfield",
indexes: []
]
}
Hope that helps!