【发布时间】:2019-01-29 15:17:49
【问题描述】:
可以使用firebase deploy --only firestore:indexes 从 CLI 部署索引。
但是是否可以使用 CLI 或通过某种客户端删除它们?
我在 CLI 文档中看不到对它的任何引用。虽然它似乎有一个 REST 端点here,但我必须编写一个客户端来调用它。
强制用户进入控制台 UI 并为他们想要删除的每个索引手动单击“删除”似乎很笨拙。特别是因为在开发过程中这些指标可能会经常变化。
【问题讨论】:
-
如果您使用 CLI 部署的索引不包含您要删除的索引,该怎么办?
-
@DougStevenson 它只是给了我警告
there are some indexes defined in your project that are not present in your firestore indexes file. Run firebase firestore:indexes and save the result to correct the discrepancy -
好的,这听起来像是您应该提交的功能请求。 firebase.google.com/support/contact/bugs-features
-
@DougStevenson 谢谢,完成。
标签: firebase google-cloud-firestore firebase-cli