# Logstash exec Output delete all files with extension

**URL:** <https://discuss.elastic.co/t/logstash-exec-output-delete-all-files-with-extension/81279>\
**Category:** Logstash\
**Created:** [April 5, 2017, 9:08am UTC](https://discuss.elastic.co/t/logstash-exec-output-delete-all-files-with-extension/81279 "2017-04-05T09:08:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mouss](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mouss/32/17097_2.png) [@Mouss](https://discuss.elastic.co/u/Mouss)\
**Post date:** [April 5, 2017, 9:08am UTC](https://discuss.elastic.co/t/logstash-exec-output-delete-all-files-with-extension/81279/1 "2017-04-05T09:08:39Z")

</div>

Hello !  
I want to make an exec in output to delete all files with extension .conf  
i tried "rm \*.conf " but didn't work  
Thank you for your help I will be very grateful

---

<div class="post-metadata">

**Author:** ![Mouss](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mouss/32/17097_2.png) [@Mouss](https://discuss.elastic.co/u/Mouss)\
**Post date:** [April 5, 2017, 9:15am UTC](https://discuss.elastic.co/t/logstash-exec-output-delete-all-files-with-extension/81279/2 "2017-04-05T09:15:03Z")

</div>

find . -name '\*.conf' -delete

it's ok this worked for me

---

<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:** [May 3, 2017, 9:15am UTC](https://discuss.elastic.co/t/logstash-exec-output-delete-all-files-with-extension/81279/3 "2017-05-03T09:15:19Z")

</div>

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