# ES delete logs between timestamp range

**URL:** <https://discuss.elastic.co/t/es-delete-logs-between-timestamp-range/167876>\
**Category:** Elasticsearch\
**Created:** [February 11, 2019, 2:57pm UTC](https://discuss.elastic.co/t/es-delete-logs-between-timestamp-range/167876 "2019-02-11T14:57:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shaheryar](https://avatars.discourse-cdn.com/v4/letter/s/b5ac83/32.png) [@shaheryar](https://discuss.elastic.co/u/shaheryar)\
**Post date:** [February 11, 2019, 2:57pm UTC](https://discuss.elastic.co/t/es-delete-logs-between-timestamp-range/167876/1 "2019-02-11T14:57:33Z")

</div>

Can any body point out what's wrong with the query?

POST logstash-2019.02/\_delete\_by\_query  
{  
"query": {  
"range":{  
"@timestamp" : {  
"gte": "2019-02-11T19:00:00Z"  
}  
}  
}  
}

Output

{  
"took": 0,  
"timed\_out": false,  
"total": 0,  
"deleted": 0,  
"batches": 0,  
"version\_conflicts": 0,  
"noops": 0,  
"retries": {  
"bulk": 0,  
"search": 0  
},  
"throttled\_millis": 0,  
"requests\_per\_second": -1,  
"throttled\_until\_millis": 0,  
"failures":   
}

---

<div class="post-metadata">

**Author:** ![shaheryar](https://avatars.discourse-cdn.com/v4/letter/s/b5ac83/32.png) [@shaheryar](https://discuss.elastic.co/u/shaheryar)\
**Post date:** [February 11, 2019, 3:26pm UTC](https://discuss.elastic.co/t/es-delete-logs-between-timestamp-range/167876/2 "2019-02-11T15:26:41Z")

</div>

It got solved

---

<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:** [February 11, 2019, 3:28pm UTC](https://discuss.elastic.co/t/es-delete-logs-between-timestamp-range/167876/3 "2019-02-11T15:28:08Z")

</div>

Then you should may be tell the community here what was wrong and how you solved it.

---

<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:** [March 11, 2019, 3:35pm UTC](https://discuss.elastic.co/t/es-delete-logs-between-timestamp-range/167876/4 "2019-03-11T15:35:00Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
