# File\_completed\_action delete not working for gzip files

**URL:** <https://discuss.elastic.co/t/file-completed-action-delete-not-working-for-gzip-files/216661>\
**Category:** Logstash\
**Created:** [January 27, 2020, 1:32pm UTC](https://discuss.elastic.co/t/file-completed-action-delete-not-working-for-gzip-files/216661 "2020-01-27T13:32:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hukel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hukel/32/78624_2.png) [@hukel](https://discuss.elastic.co/u/hukel)\
**Post date:** [January 27, 2020, 1:32pm UTC](https://discuss.elastic.co/t/file-completed-action-delete-not-working-for-gzip-files/216661/1 "2020-01-27T13:32:35Z")

</div>

When I read .gz log files, the files are not being deleted after being read. When I use an uncompressed file it seems to delete correctly.

- logstash-input-file (4.1.11)

- logstash-7.4.2

I can create and delete files in the folder so I don't see how it could be a permission issue. I don't see any errors in the logs related to a failed delete attempt.

---

<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:** [February 24, 2020, 1:32pm UTC](https://discuss.elastic.co/t/file-completed-action-delete-not-working-for-gzip-files/216661/2 "2020-02-24T13:32:40Z")

</div>

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