# Kibana 4 and KOPF showing deleted documents deleted from Elasticsearch

**URL:** <https://discuss.elastic.co/t/kibana-4-and-kopf-showing-deleted-documents-deleted-from-elasticsearch/33928>\
**Category:** Kibana\
**Created:** [November 5, 2015, 10:03pm UTC](https://discuss.elastic.co/t/kibana-4-and-kopf-showing-deleted-documents-deleted-from-elasticsearch/33928 "2015-11-05T22:03:16Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![inderjeet26](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/inderjeet26/32/3870_2.png) [@inderjeet26](https://discuss.elastic.co/u/inderjeet26)\
**Post date:** [November 6, 2015, 5:32pm UTC](https://discuss.elastic.co/t/kibana-4-and-kopf-showing-deleted-documents-deleted-from-elasticsearch/33928/3 "2015-11-06T17:32:16Z")

</div>

I tried doing a bit more research and tried running the query suggested here [Clear deleted docs](https://discuss.elastic.co/t/clear-deleted-docs/22652/2).  
$ curl -XPOST '[http://localhost:9200/twitter/\_optimize?max\_num\_segments=1](http://localhost:9200/twitter/_optimize?max_num_segments=1)'

This made all the size of my indexes less over 80 MB but the number of documents shown are still the same in KOPF interface.

---

_[View the full topic](https://discuss.elastic.co/t/kibana-4-and-kopf-showing-deleted-documents-deleted-from-elasticsearch/33928)._
