Elasticsearch 9 · Indices and mappings

Delete an index

Delete an index and all its documents.

curl -u elastic:$ELASTIC_PASSWORD --cacert http_ca.crt -X DELETE "https://localhost:9200/products"

Caution: Permanently deletes the index. Check the name, since wildcards can match many indices.

Official Elasticsearch 9 documentation

More indices and mappings commands

All indices and mappings commands · Elasticsearch 9 cheatsheet

Was this page helpful?