# Logstash configuration to delete input files once processed

**URL:** https://discuss.elastic.co/t/logstash-configuration-to-delete-input-files-once-processed/322029
**Category:** Logstash
**Created:** [December 27, 2022, 9:14am UTC](https://discuss.elastic.co/t/logstash-configuration-to-delete-input-files-once-processed/322029 "2022-12-27T09:14:27Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![BhawanaSharma](https://avatars.discourse-cdn.com/v4/letter/b/7feea3/32.png) [@BhawanaSharma](https://discuss.elastic.co/u/BhawanaSharma)
#### Post date: [December 27, 2022, 4:00pm UTC](https://discuss.elastic.co/t/logstash-configuration-to-delete-input-files-once-processed/322029/5 "2022-12-27T16:00:02Z")

</div>

Got some reference from this link - [Deleting log files after they have finished processing](https://discuss.elastic.co/t/deleting-log-files-after-they-have-finished-processing/246382)  
Firstly I tried to do this using Filebeat but then while searching found this above link and tried to do that using Logstash.  
Please suggest what\how I could achieve that..?

---

_[View the full topic](https://discuss.elastic.co/t/logstash-configuration-to-delete-input-files-once-processed/322029)._
