# Deleted the indexes but the data is still there

**URL:** <https://discuss.elastic.co/t/deleted-the-indexes-but-the-data-is-still-there/232343>\
**Category:** Elasticsearch\
**Created:** [May 13, 2020, 2:47am UTC](https://discuss.elastic.co/t/deleted-the-indexes-but-the-data-is-still-there/232343 "2020-05-13T02:47:58Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![GGUERRA](https://avatars.discourse-cdn.com/v4/letter/g/b2d939/32.png) [@GGUERRA](https://discuss.elastic.co/u/GGUERRA)\
**Post date:** [May 13, 2020, 2:47am UTC](https://discuss.elastic.co/t/deleted-the-indexes-but-the-data-is-still-there/232343/1 "2020-05-13T02:47:58Z")

</div>

Hello everyone, I have the following question. Through Kibana, in the management section, specifically in Index Management, I deleted indexes. However, in the monitoring section, the indexes keep appearing and the disk space is still used. When I use the DELETE command it tells me that the index does not exist. How can I permanently remove these indexes?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Emily17](https://avatars.discourse-cdn.com/v4/letter/e/e95f7d/32.png) [@Emily17](https://discuss.elastic.co/u/Emily17)\
**Post date:** [May 13, 2020, 4:05am UTC](https://discuss.elastic.co/t/deleted-the-indexes-but-the-data-is-still-there/232343/2 "2020-05-13T04:05:44Z")

</div>

See here[.](https://www.paymydoctor.online/): [https://kb.objectrocket.com/elasticsearch/how-to-delete-an-index-in-elasticsearch-using-kibana](https://kb.objectrocket.com/elasticsearch/how-to-delete-an-index-in-elasticsearch-using-kibana)

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 13, 2020, 4:29am UTC](https://discuss.elastic.co/t/deleted-the-indexes-but-the-data-is-still-there/232343/3 "2020-05-13T04:29:58Z")

</div>

If you are deleting them and they are returning, then something is asking Elasticsearch to create them and is then adding data to them.

What do your Elasticsearch logs show if you do a grep foe the index name?

---

<div class="post-metadata">

**Author:** ![GGUERRA](https://avatars.discourse-cdn.com/v4/letter/g/b2d939/32.png) [@GGUERRA](https://discuss.elastic.co/u/GGUERRA)\
**Post date:** [May 17, 2020, 3:09pm UTC](https://discuss.elastic.co/t/deleted-the-indexes-but-the-data-is-still-there/232343/4 "2020-05-17T15:09:08Z")

</div>

Thanks for your answer, but as I mentioned previously when using the DELETE command I get that the index does not exist, surely because I already deleted it using kibana, however it is as if it was not deleted because the index continues to appear in the monitoring section .

---

<div class="post-metadata">

**Author:** ![GGUERRA](https://avatars.discourse-cdn.com/v4/letter/g/b2d939/32.png) [@GGUERRA](https://discuss.elastic.co/u/GGUERRA)\
**Post date:** [May 17, 2020, 3:09pm UTC](https://discuss.elastic.co/t/deleted-the-indexes-but-the-data-is-still-there/232343/5 "2020-05-17T15:09:48Z")

</div>

What logs should I review? Thanks for your answer!

---

<div class="post-metadata">

**Author:** ![GGUERRA](https://avatars.discourse-cdn.com/v4/letter/g/b2d939/32.png) [@GGUERRA](https://discuss.elastic.co/u/GGUERRA)\
**Post date:** [May 17, 2020, 4:21pm UTC](https://discuss.elastic.co/t/deleted-the-indexes-but-the-data-is-still-there/232343/6 "2020-05-17T16:21:29Z")

</div>

To further exemplify my situation, as you can see in the monitoring section, the used disk space continues to appear as if nothing was erased:

![1](https://us1.discourse-cdn.com/elastic/original/3X/b/d/bdc1859f3969d59a953934634e6cd27584f19009.png)

When I check in the monitoring section, the indeces keep appearing even though I already deleted them, the last one in red is one in particular that I want to delete:

 ![2](https://us1.discourse-cdn.com/elastic/original/3X/e/0/e0cea465619a4af3db7f36d924655e9088382a2b.png)

In the dev tools section, when I put delete I get the following message:

 ![3](https://us1.discourse-cdn.com/elastic/original/3X/e/e/eec9950d5b38787490369cb2898a4b27f055a36c.png)

I already tried to enter by console and use the command CURL XDELETE, but I get the same message indicated that the index does not exist, I entered the master node by console and I executed the command there, I hope that is correct.

If anyone knows how to permanently remove an index, I would really appreciate it.

Greetings and thanks!

---

<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:** [June 14, 2020, 4:21pm UTC](https://discuss.elastic.co/t/deleted-the-indexes-but-the-data-is-still-there/232343/7 "2020-06-14T16:21:30Z")

</div>

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