# Delete file logstash

**URL:** https://discuss.elastic.co/t/delete-file-logstash/302314
**Category:** Logstash
**Created:** [April 13, 2022, 10:09am UTC](https://discuss.elastic.co/t/delete-file-logstash/302314 "2022-04-13T10:09:52Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Cad](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cad/32/86661_2.png) [@Cad](https://discuss.elastic.co/u/Cad)
#### Post date: [April 13, 2022, 1:20pm UTC](https://discuss.elastic.co/t/delete-file-logstash/302314/2 "2022-04-13T13:20:24Z")

</div>

Hi,

According to this post: [Deleting log files after they have finished processing - Meta Elastic / Elastic Tips and Common Fixes - Discuss the Elastic Stack](https://discuss.elastic.co/t/deleting-log-files-after-they-have-finished-processing/246382).  
It's not possible to delete a file in filebeat after processing it. You need to take the file in logsatsh input and use the same configuration as shown in the post I share.

Cad.

---

_[View the full topic](https://discuss.elastic.co/t/delete-file-logstash/302314)._
