# Index delete acknowledgement

**URL:** <https://discuss.elastic.co/t/index-delete-acknowledgement/10112>\
**Category:** Elasticsearch\
**Created:** [December 18, 2012, 11:37pm UTC](https://discuss.elastic.co/t/index-delete-acknowledgement/10112 "2012-12-18T23:37:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![krispyjala](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/krispyjala/32/846_2.png) [@krispyjala](https://discuss.elastic.co/u/krispyjala)\
**Post date:** [December 18, 2012, 11:37pm UTC](https://discuss.elastic.co/t/index-delete-acknowledgement/10112/1 "2012-12-18T23:37:24Z")

</div>

I just deleted an index via java, and it seems to not have return  
acknowledgement. When curling using command line, it  
returns {"ok":true,"acknowledged":false}. Does this mean the index is  
really deleted? What does acknowledged mean, and why would it ever return  
false? Using 0.19.11.

Thanks,  
KJ.

--

---

<div class="post-metadata">

**Author:** ![mvg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mvg/32/98890_2.png) [@mvg](https://discuss.elastic.co/u/mvg)\
**Post date:** [December 19, 2012, 11:11am UTC](https://discuss.elastic.co/t/index-delete-acknowledgement/10112/2 "2012-12-19T11:11:16Z")

</div>

Can you show your code snippet that executes the delete index? The  
following code should return your the acknowledgement:  
DeleteIndexResponse response =  
client.admin().indices().prepareDelete("index1").execute().actionGet();  
System.out.println("acknowledged=" + response.acknowledged());

Martijn

On 19 December 2012 00:37, krispyjala [krispyjala@gmail.com](mailto:krispyjala@gmail.com) wrote:

> I just deleted an index via java, and it seems to not have return  
> acknowledgement. When curling using command line, it returns  
> {"ok":true,"acknowledged":false}. Does this mean the index is really  
> deleted? What does acknowledged mean, and why would it ever return false?  
> Using 0.19.11.
> 
> Thanks,  
> KJ.
> 
> --

--  
Met vriendelijke groet,

Martijn van Groningen

--

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [December 20, 2012, 12:39am UTC](https://discuss.elastic.co/t/index-delete-acknowledgement/10112/3 "2012-12-20T00:39:26Z")

</div>

"acknowledged" = false means the cluster-wide delete index operation has  
been executed on the master node, but not all nodes that hold shards of the  
index did respond within the default timeout (10s). This does not  
necessarily mean your index is not deleted, but it indicates non-responsive  
nodes, and that may affect further operations especially those using locks  
on the global cluster state, so this should draw your attention. Note,  
there is a parameter "timeout" where you can increase the default timeout.  
This may help in situations where indices are deleted while some nodes are  
heavily loaded with other tasks. Think of "acknowledged" = true as an  
equivalent to "not\_timed\_out" = true.

Best regards,

Jörg

On Wednesday, December 19, 2012 12:37:24 AM UTC+1, krispyjala wrote:

> I just deleted an index via java, and it seems to not have return  
> acknowledgement. When curling using command line, it  
> returns {"ok":true,"acknowledged":false}. Does this mean the index is  
> really deleted? What does acknowledged mean, and why would it ever return  
> false? Using 0.19.11.
> 
> Thanks,  
> KJ.

--

---

<div class="post-metadata">

**Author:** ![krispyjala](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/krispyjala/32/846_2.png) [@krispyjala](https://discuss.elastic.co/u/krispyjala)\
**Post date:** [December 20, 2012, 12:45am UTC](https://discuss.elastic.co/t/index-delete-acknowledgement/10112/4 "2012-12-20T00:45:22Z")

</div>

The acknowledgement returns fine, but I want to know why it's false. Under  
what circumstances? And does that mean that the index isn't really deleted  
then?

-- KJ

On Wednesday, December 19, 2012 3:11:16 AM UTC-8, Martijn v Groningen wrote:

> Can you show your code snippet that executes the delete index? The  
> following code should return your the acknowledgement:  
> DeleteIndexResponse response =  
> client.admin().indices().prepareDelete("index1").execute().actionGet();  
> System.out.println("acknowledged=" + response.acknowledged());
> 
> Martijn
> 
> On 19 December 2012 00:37, krispyjala \<[krisp...@gmail.com](mailto:krisp...@gmail.com) \<javascript:\>\>  
> wrote:
> 
> > I just deleted an index via java, and it seems to not have return  
> > acknowledgement. When curling using command line, it returns  
> > {"ok":true,"acknowledged":false}. Does this mean the index is really  
> > deleted? What does acknowledged mean, and why would it ever return  
> > false?  
> > Using 0.19.11.
> > 
> > Thanks,  
> > KJ.
> > 
> > --
> 
> --  
> Met vriendelijke groet,
> 
> Martijn van Groningen

--

---

<div class="post-metadata">

**Author:** ![krispyjala](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/krispyjala/32/846_2.png) [@krispyjala](https://discuss.elastic.co/u/krispyjala)\
**Post date:** [December 20, 2012, 12:47am UTC](https://discuss.elastic.co/t/index-delete-acknowledgement/10112/5 "2012-12-20T00:47:02Z")

</div>

In the end, even though we upped the timeout to 5 mins, it still returned  
with false, so yeah you're right, something was operationally wrong. So we  
bounced a few nodes, and then it worked.

On Wednesday, December 19, 2012 4:39:26 PM UTC-8, Jörg Prante wrote:

> "acknowledged" = false means the cluster-wide delete index operation has  
> been executed on the master node, but not all nodes that hold shards of the  
> index did respond within the default timeout (10s). This does not  
> necessarily mean your index is not deleted, but it indicates non-responsive  
> nodes, and that may affect further operations especially those using locks  
> on the global cluster state, so this should draw your attention. Note,  
> there is a parameter "timeout" where you can increase the default timeout.  
> This may help in situations where indices are deleted while some nodes are  
> heavily loaded with other tasks. Think of "acknowledged" = true as an  
> equivalent to "not\_timed\_out" = true.
> 
> Best regards,
> 
> Jörg
> 
> On Wednesday, December 19, 2012 12:37:24 AM UTC+1, krispyjala wrote:
> 
> > I just deleted an index via java, and it seems to not have return  
> > acknowledgement. When curling using command line, it  
> > returns {"ok":true,"acknowledged":false}. Does this mean the index is  
> > really deleted? What does acknowledged mean, and why would it ever return  
> > false? Using 0.19.11.
> > 
> > Thanks,  
> > KJ.

--

---

<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, 2:59am UTC](https://discuss.elastic.co/t/index-delete-acknowledgement/10112/6 "2017-07-06T02:59:13Z")

</div>


