# Deleting docs in elasticsearch

**URL:** <https://discuss.elastic.co/t/deleting-docs-in-elasticsearch/20650>\
**Category:** Elasticsearch\
**Created:** [November 9, 2014, 1:41am UTC](https://discuss.elastic.co/t/deleting-docs-in-elasticsearch/20650 "2014-11-09T01:41:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kilsedar](https://avatars.discourse-cdn.com/v4/letter/k/c2a13f/32.png) [@kilsedar](https://discuss.elastic.co/u/kilsedar)\
**Post date:** [November 9, 2014, 1:41am UTC](https://discuss.elastic.co/t/deleting-docs-in-elasticsearch/20650/1 "2014-11-09T01:41:31Z")

</div>

Hello All,  
I switched to latest beta version of elasticsearch-1.4.0.Beta1, for it to  
be compatible with kibana-4.0.0-BETA1.1  
Right now when I delete docs and index some new data the old data comes  
back.  
By the way I am using head plugin of elasticsearch to delete the index.

Before upgrading I could actually delete, and a new index was being created  
per day, named as the date of that day. Right now a new index is never  
created and data is pushed to the same index. I would like to go back to  
the old configuration.

What how I solve this issue?

Thanks!

Eylül

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/32010d1b-794a-4d73-af42-059c4f415703%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/32010d1b-794a-4d73-af42-059c4f415703%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [November 9, 2014, 10:30pm UTC](https://discuss.elastic.co/t/deleting-docs-in-elasticsearch/20650/2 "2014-11-09T22:30:30Z")

</div>

This sort of thing will only really happen if you have dangling indexes or  
other nodes in the cluster that leave and then join later, which is just  
another form of dangling indexes.

What sort of data is it, how are you indexing it?

On 9 November 2014 12:41, kilsedar [kilsedar@sabanciuniv.edu](mailto:kilsedar@sabanciuniv.edu) wrote:

> Hello All,  
> I switched to latest beta version of elasticsearch-1.4.0.Beta1, for it to  
> be compatible with kibana-4.0.0-BETA1.1  
> Right now when I delete docs and index some new data the old data comes  
> back.  
> By the way I am using head plugin of elasticsearch to delete the index.
> 
> Before upgrading I could actually delete, and a new index was being  
> created per day, named as the date of that day. Right now a new index is  
> never created and data is pushed to the same index. I would like to go back  
> to the old configuration.
> 
> What how I solve this issue?
> 
> Thanks!
> 
> Eylül
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/32010d1b-794a-4d73-af42-059c4f415703%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/32010d1b-794a-4d73-af42-059c4f415703%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/32010d1b-794a-4d73-af42-059c4f415703%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/32010d1b-794a-4d73-af42-059c4f415703%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZ%3DHqGYi2EXmx%3DT055vqFRCKoabj65P3RAL6aWCFnM16xQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZ%3DHqGYi2EXmx%3DT055vqFRCKoabj65P3RAL6aWCFnM16xQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![kilsedar](https://avatars.discourse-cdn.com/v4/letter/k/c2a13f/32.png) [@kilsedar](https://discuss.elastic.co/u/kilsedar)\
**Post date:** [November 11, 2014, 11:21am UTC](https://discuss.elastic.co/t/deleting-docs-in-elasticsearch/20650/3 "2014-11-11T11:21:37Z")

</div>

Hello Mark,  
I am indexing through logstash in the following way:

output {  
elasticsearch {  
protocol =\> "http"  
cluster =\> "CLUSTER"  
}  
}

The data is in json format and i am filtering the data as follows:

filter {  
json {  
source =\> "message"  
}  
}

Thank you for your help,

Eylül

On Sunday, November 9, 2014 11:31:24 PM UTC+1, Mark Walkom wrote:

> This sort of thing will only really happen if you have dangling indexes or  
> other nodes in the cluster that leave and then join later, which is just  
> another form of dangling indexes.
> 
> What sort of data is it, how are you indexing it?
> 
> On 9 November 2014 12:41, kilsedar \<kils...@sabanciuniv.edu \<javascript:\>\>  
> wrote:
> 
> > Hello All,  
> > I switched to latest beta version of elasticsearch-1.4.0.Beta1, for it to  
> > be compatible with kibana-4.0.0-BETA1.1  
> > Right now when I delete docs and index some new data the old data comes  
> > back.  
> > By the way I am using head plugin of elasticsearch to delete the index.
> > 
> > Before upgrading I could actually delete, and a new index was being  
> > created per day, named as the date of that day. Right now a new index is  
> > never created and data is pushed to the same index. I would like to go back  
> > to the old configuration.
> > 
> > What how I solve this issue?
> > 
> > Thanks!
> > 
> > Eylül
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/32010d1b-794a-4d73-af42-059c4f415703%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/32010d1b-794a-4d73-af42-059c4f415703%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/32010d1b-794a-4d73-af42-059c4f415703%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/32010d1b-794a-4d73-af42-059c4f415703%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/537e8936-2d1d-42e0-aa0b-6743ab97477c%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/537e8936-2d1d-42e0-aa0b-6743ab97477c%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 12:50am UTC](https://discuss.elastic.co/t/deleting-docs-in-elasticsearch/20650/4 "2017-07-06T00:50:51Z")

</div>


