{"id":1145,"date":"2021-06-11T04:48:42","date_gmt":"2021-06-10T23:18:42","guid":{"rendered":"https:\/\/learn.vunetsystems.com\/forum\/question\/how-to-delete-multiple-open-indices-in-elasticsearch\/"},"modified":"2021-06-11T04:48:42","modified_gmt":"2021-06-10T23:18:42","slug":"how-to-delete-multiple-open-indices-in-elasticsearch","status":"publish","type":"question","link":"https:\/\/learn.vunetsystems.com\/forum\/question\/how-to-delete-multiple-open-indices-in-elasticsearch\/","title":{"rendered":"How to delete multiple open indices in Elasticsearch?"},"content":{"rendered":"<p>Sometimes in the development environment, we create a code change to store certain data in Elasticsearch. It creates a new index in Elasticsearch on a regular interval of time. For a large period of time, the number of open indices may increase. This causes a slow execution of applications in our system. To solve this issue we need to remove those unused indices. In general, we use a curl command to delete an index in Elasticsearch which can be viewed as :<\/p>\n<p><em>curl -X DELETE &#8216;http:\/\/localhost:9200\/&lt;index_name&gt;&#8217;<\/em><\/p>\n<p>To delete few indices, this method can be manageable. But for a large number of open indices, it might take huge time to follow the above method. Do we have an option to achieve this task in an easy way?<\/p>\n","protected":false},"author":32,"featured_media":1146,"comment_status":"open","ping_status":"closed","template":"","question-category":[30],"question_tags":[25,66,64,65],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/learn.vunetsystems.com\/forum\/wp-json\/wp\/v2\/question\/1145"}],"collection":[{"href":"https:\/\/learn.vunetsystems.com\/forum\/wp-json\/wp\/v2\/question"}],"about":[{"href":"https:\/\/learn.vunetsystems.com\/forum\/wp-json\/wp\/v2\/types\/question"}],"author":[{"embeddable":true,"href":"https:\/\/learn.vunetsystems.com\/forum\/wp-json\/wp\/v2\/users\/32"}],"replies":[{"embeddable":true,"href":"https:\/\/learn.vunetsystems.com\/forum\/wp-json\/wp\/v2\/comments?post=1145"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/learn.vunetsystems.com\/forum\/wp-json\/wp\/v2\/media\/1146"}],"wp:attachment":[{"href":"https:\/\/learn.vunetsystems.com\/forum\/wp-json\/wp\/v2\/media?parent=1145"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/learn.vunetsystems.com\/forum\/wp-json\/wp\/v2\/question-category?post=1145"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/learn.vunetsystems.com\/forum\/wp-json\/wp\/v2\/question_tags?post=1145"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}