# Delete all of type across all indices

**URL:** <https://discuss.elastic.co/t/delete-all-of-type-across-all-indices/20673>\
**Category:** Elasticsearch\
**Created:** [November 10, 2014, 7:31pm UTC](https://discuss.elastic.co/t/delete-all-of-type-across-all-indices/20673 "2014-11-10T19:31:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Irwin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michael_irwin/32/985_2.png) [@Michael\_Irwin](https://discuss.elastic.co/u/Michael_Irwin)\
**Post date:** [November 10, 2014, 7:31pm UTC](https://discuss.elastic.co/t/delete-all-of-type-across-all-indices/20673/1 "2014-11-10T19:31:50Z")

</div>

I'm using logstash to store logs. I'd like to delete all logstash entries  
of type 'error'. I checked out the Delete by Query API, but I can't seem to  
figure out how to do what I want in this situation. Help!

--  
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/ff84d215-b909-4b29-bcdc-87dfdcfda5f2%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/ff84d215-b909-4b29-bcdc-87dfdcfda5f2%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Michael\_Irwin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michael_irwin/32/985_2.png) [@Michael\_Irwin](https://discuss.elastic.co/u/Michael_Irwin)\
**Post date:** [November 13, 2014, 1:34pm UTC](https://discuss.elastic.co/t/delete-all-of-type-across-all-indices/20673/2 "2014-11-13T13:34:20Z")

</div>

I finally figured it out with the help of someone on SO. The query that  
worked was DELETE logstash\*/\_query?q=\_type:error

On Monday, November 10, 2014 2:31:51 PM UTC-5, Michael Irwin wrote:

> I'm using logstash to store logs. I'd like to delete all logstash entries  
> of type 'error'. I checked out the Delete by Query API, but I can't seem to  
> figure out how to do what I want in this situation. Help!

--  
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/e120aa37-eb77-4814-804b-0011ff7472ec%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e120aa37-eb77-4814-804b-0011ff7472ec%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/delete-all-of-type-across-all-indices/20673/3 "2017-07-06T00:50:16Z")

</div>


