Delete an index
Delete an index and all its data, there is no undo
curl -X DELETE http://localhost:9200/<index>
- tool
- elasticsearch19 commands
- tags
- elasticsearch
More elasticsearch commands
-
curl -s http://localhost:9200/<index>/_settings | jq .Check the number of shards and replicas and the refresh interval
-
curl -X POST http://localhost:9200/_reindex -H 'Content-Type: application/json' -d '{"source":{"index":"old"},"dest":{"index":"new"}}'Copy documents from one index to another
-
curl -X POST 'http://localhost:9200/<index>/_forcemerge?max_num_segments=1'Reduce the number of segments, useful before you make an index read-only
-
curl -s http://localhost:9200/_cat/nodes?vShow all Elasticsearch nodes with JVM heap, load and roles
-
curl -s -X POST http://localhost:9200/<index>/_search -H 'Content-Type: application/json' -d '{"query":{"match":{"message":"error"}}}'Full-text search for documents with "error" in the `message` field