Skip to content

Instantly share code, notes, and snippets.

@kuznero
Last active January 10, 2024 17:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kuznero/09856799eebabd1b826960a49f34d7aa to your computer and use it in GitHub Desktop.
Save kuznero/09856799eebabd1b826960a49f34d7aa to your computer and use it in GitHub Desktop.
Delete indices from Elasticsearch with cURL

To get all registered indices and remove one:

curl -XGET http://elasticsearch:9200/_cat/indices | sort
curl -XDELETE http://elasticsearch:9200/syst-log-forex-core-20170726
@Jayesh-upvision
Copy link

how to delete multiple indices together with single command ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment