# Deleting files after file beat processes them

**URL:** https://discuss.elastic.co/t/deleting-files-after-file-beat-processes-them/225796
**Category:** Beats
**Created:** [March 31, 2020, 6:27am UTC](https://discuss.elastic.co/t/deleting-files-after-file-beat-processes-them/225796 "2020-03-31T06:27:41Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Youssef\_SBAI](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/youssef_sbai/32/64242_2.png) [@Youssef\_SBAI](https://discuss.elastic.co/u/Youssef_SBAI)
#### Post date: [March 31, 2020, 6:27am UTC](https://discuss.elastic.co/t/deleting-files-after-file-beat-processes-them/225796/1 "2020-03-31T06:27:41Z")

</div>

Hi,

I would like to know if there is a way of deleting log files once filebeat has finished processing.

We have files sent to an input folder, file beat then processes them. I would like to clear them down once it is done (as we no longer need the files anymore). Reading through posts, filebeat doesn't provide anything out of box (would be a nice enhancement 🙂 ).

How does everyone deal with this? Is it just a case of dumping the files to the input directory and then wait 24hours before removing?

---

<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: [April 28, 2020, 8:27am UTC](https://discuss.elastic.co/t/deleting-files-after-file-beat-processes-them/225796/2 "2020-04-28T08:27:46Z")

</div>

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