# DeleteIndexRequest in 6.0.1 version

**URL:** https://discuss.elastic.co/t/deleteindexrequest-in-6-0-1-version/124829
**Category:** Elasticsearch
**Created:** [March 20, 2018, 4:57pm UTC](https://discuss.elastic.co/t/deleteindexrequest-in-6-0-1-version/124829 "2018-03-20T16:57:04Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Pushpak\_Chavan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pushpak_chavan/32/56926_2.png) [@Pushpak\_Chavan](https://discuss.elastic.co/u/Pushpak_Chavan)
#### Post date: [March 20, 2018, 4:57pm UTC](https://discuss.elastic.co/t/deleteindexrequest-in-6-0-1-version/124829/1 "2018-03-20T16:57:04Z")

</div>

Hi I am using 6.0.1 version of elastic search. Can someone help me for deleting index using java api.

6.0.1 version doesn't have below line of code  
DeleteIndexResponse deleteIndexResponse = client.indices().delete(deleteIndexRequest);

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [March 20, 2018, 6:05pm UTC](https://discuss.elastic.co/t/deleteindexrequest-in-6-0-1-version/124829/2 "2018-03-20T18:05:00Z")

</div>

You can do something like this I think:

```auto
client.getLowLevelClient().performRequest("DELETE", "/index", Collections.emptyMap());

```

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [April 17, 2018, 6:05pm UTC](https://discuss.elastic.co/t/deleteindexrequest-in-6-0-1-version/124829/3 "2018-04-17T18:05:22Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
