🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
# Delete Index /删除索引 原文链接 : [https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-delete-index.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-delete-index.html) 译文链接 : [Delete Index /删除索引](/pages/viewpage.action?pageId=4882791) 贡献者 : [Le-Mon](/display/~tanwen) 注意:涉及翻译内容: Index-索引;types-类型;mapping-映射;aliases-别名;shards-分片;replicas-副本 删除索引API操作: ``` curl -XDELETE 'localhost:9200/twitter?pretty' ``` 上述命令删除了  `twitter 索引,删除必须指定索引,别名或通配符表达式。` 删除索引API也可以应用于多个索引,通过使用逗号分隔,或者通过 (小心!)`_all` 或者 `* 删除所有index`。 可以通过设置 `action.destructive_requires_name` 为 `true 来避免通配符或者 _all 操作。这个设置也可以通过集群api设置。`