# Auto delete consumed messages in Kafka

**URL:** <https://discuss.elastic.co/t/auto-delete-consumed-messages-in-kafka/159533>\
**Category:** Logstash\
**Created:** [December 5, 2018, 12:45pm UTC](https://discuss.elastic.co/t/auto-delete-consumed-messages-in-kafka/159533 "2018-12-05T12:45:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![florentmair](https://avatars.discourse-cdn.com/v4/letter/f/8e7dd6/32.png) [@florentmair](https://discuss.elastic.co/u/florentmair)\
**Post date:** [December 5, 2018, 12:45pm UTC](https://discuss.elastic.co/t/auto-delete-consumed-messages-in-kafka/159533/1 "2018-12-05T12:45:07Z")

</div>

Hello

I know that i can tune the log retention directly with the config of each topy (by date, by space) but i prefer that's the consumer (input-kafka plugin) who delete consumed messages.

Does it possible withe the Input plugin kafka ?

Thanks

---

<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:** [January 2, 2019, 12:45pm UTC](https://discuss.elastic.co/t/auto-delete-consumed-messages-in-kafka/159533/2 "2019-01-02T12:45:08Z")

</div>

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