# Lohstash output file locking in Windows preventing deletion

**URL:** <https://discuss.elastic.co/t/lohstash-output-file-locking-in-windows-preventing-deletion/150892>\
**Category:** Logstash\
**Created:** [October 3, 2018, 12:40pm UTC](https://discuss.elastic.co/t/lohstash-output-file-locking-in-windows-preventing-deletion/150892 "2018-10-03T12:40:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![motodaddo](https://avatars.discourse-cdn.com/v4/letter/m/7993a0/32.png) [@motodaddo](https://discuss.elastic.co/u/motodaddo)\
**Post date:** [October 3, 2018, 12:40pm UTC](https://discuss.elastic.co/t/lohstash-output-file-locking-in-windows-preventing-deletion/150892/1 "2018-10-03T12:40:23Z")

</div>

Hello!  
I'm testing logstash on Windows and i've noticed that using file as output plugin, the output file created is locked by the process (java) preventing its deletion.  
Is there any option to let deletion of output file while logsthash is running?  
P.S. On linux it's possible to delete output file while logstash is running.

Thank you in advance.

---

<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:** [October 31, 2018, 12:40pm UTC](https://discuss.elastic.co/t/lohstash-output-file-locking-in-windows-preventing-deletion/150892/2 "2018-10-31T12:40:23Z")

</div>

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