# HQL deletion does not trigger Elasticsearch deletion

**URL:** <https://discourse.hibernate.org/t/hql-deletion-does-not-trigger-elasticsearch-deletion/944>\
**Category:** Hibernate Search\
**Created:** [June 20, 2018, 11:24am UTC](https://discourse.hibernate.org/t/hql-deletion-does-not-trigger-elasticsearch-deletion/944 "2018-06-20T11:24:23Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![yrodiere](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/yrodiere/32/1760_2.png) [@yrodiere](https://discourse.hibernate.org/u/yrodiere)\
**Post date:** [June 20, 2018, 12:37pm UTC](https://discourse.hibernate.org/t/hql-deletion-does-not-trigger-elasticsearch-deletion/944/2 "2018-06-20T12:37:01Z")

</div>

It is expected. Delete queries are executed without the client (Hibernate Search, and Hibernate ORM for that matter) knowing what is deleted exactly.

Similarly, if you use a second-level cache, it won’t be updated to reflect the changes performed by your HQL query. Though I suppose it’s less critical with delete queries than it is with update queries.

---

_[View the full topic](https://discourse.hibernate.org/t/hql-deletion-does-not-trigger-elasticsearch-deletion/944)._
