# Can't get delete by query to actually delete

**URL:** <https://discuss.elastic.co/t/cant-get-delete-by-query-to-actually-delete/205323>\
**Category:** Elasticsearch\
**Created:** [October 25, 2019, 8:09pm UTC](https://discuss.elastic.co/t/cant-get-delete-by-query-to-actually-delete/205323 "2019-10-25T20:09:25Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 5, 2019, 12:43pm UTC](https://discuss.elastic.co/t/cant-get-delete-by-query-to-actually-delete/205323/10 "2019-11-05T12:43:31Z")

</div>

> [@CityofRome](#):
>
> The line listed above actually has double slashes but the extra are stripped out when the post is actually posted.

Please format your code, logs or configuration files using `</>` icon as explained in [this guide](https://discuss.elastic.co/t/about-the-elasticsearch-category/21) and not the citation button. It will make your post more readable.

Or use markdown style like:

````
```
CODE
```

````

This is the icon to use if you are not using markdown format:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/e/7e6e239431ec2d71cbf1beef741f2e93e7cc762c.jpg)

There's a live preview panel for exactly this reasons.

> [@CityofRome](#):
>
> If I remove that line, the other two terms will work to delete documents.

With the default analyzer, I'd expect this behavior. Either change the analyzer to be a `keyword` analyzer or use the `keyword` data type instead of `text`.

---

_[View the full topic](https://discuss.elastic.co/t/cant-get-delete-by-query-to-actually-delete/205323)._
