Delete documents of type in Elasticsearch

前端 未结 7 1443
南旧
南旧 2021-02-18 16:50

I want to delete all the documents indexed within a type in Elasticsearch, using the HTTP/REST api, but I don\'t want to delete the mapping for this type

How can I build

相关标签:
7条回答
  • 2021-02-18 17:39

    use:

    curl -XDELETE 'http://{server}/{index_name}/{type_name}/'
    

    (as in documentation)

    0 讨论(0)
提交回复
热议问题