# How to delete single source log from graylog

**URL:** <https://community.graylog.org/t/how-to-delete-single-source-log-from-graylog/18863>\
**Category:** Graylog Central (peer support)\
**Created:** [February 19, 2021, 8:20am UTC](https://community.graylog.org/t/how-to-delete-single-source-log-from-graylog/18863 "2021-02-19T08:20:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shyambihari](https://avatars.discourse-cdn.com/v4/letter/s/ed8c4c/32.png) [@Shyambihari](https://community.graylog.org/u/Shyambihari)\
**Post date:** [February 19, 2021, 8:20am UTC](https://community.graylog.org/t/how-to-delete-single-source-log-from-graylog/18863/1 "2021-02-19T08:20:21Z")

</div>

Hi Team,

we want to delete all the log for only one device, so please help how I can  
delete one device log .

---

<div class="post-metadata">

**Author:** ![jan](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jan/32/11_2.png) [@jan](https://community.graylog.org/u/jan)\
**Post date:** [February 19, 2021, 9:56am UTC](https://community.graylog.org/t/how-to-delete-single-source-log-from-graylog/18863/2 "2021-02-19T09:56:28Z")

</div>

he @Shyambihari

you need to work with the `delete by query` API of elasticsearch to make this happen:

> **[Delete By Query API | Elasticsearch Reference \[6.8\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/6.8/docs-delete-by-query.html)**

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)\
**Post date:** [March 5, 2021, 9:56am UTC](https://community.graylog.org/t/how-to-delete-single-source-log-from-graylog/18863/3 "2021-03-05T09:56:58Z")

</div>

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