# Logstash S3 input not deleting files

**URL:** <https://discuss.elastic.co/t/logstash-s3-input-not-deleting-files/328386>\
**Category:** Logstash\
**Tags:** docker\
**Created:** [March 23, 2023, 6:17pm UTC](https://discuss.elastic.co/t/logstash-s3-input-not-deleting-files/328386 "2023-03-23T18:17:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![true64gurus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/true64gurus/32/107237_2.png) [@true64gurus](https://discuss.elastic.co/u/true64gurus)\
**Post date:** [March 23, 2023, 6:17pm UTC](https://discuss.elastic.co/t/logstash-s3-input-not-deleting-files/328386/1 "2023-03-23T18:17:41Z")

</div>

I am using logstash S3 input plugin. The plugin is not deleting logs post ingestion.

I am running logstsash docker on VM and have "delete =\> true".

I have job running to delete logs older than 7 days and this is how I clean old logs.

Appreciate any help  
Thanks

configuration

```auto
input {
  s3 {
    access_key_id => "xxxxxxxxx"
    secret_access_key => "xxxxxxxxxxx"
    bucket => "k8slogs"
    prefix => "logs/"
    interval => "10"
    include_object_properties => "true"
    additional_settings => {
      force_path_style => true
      follow_redirects => false
    }
    sincedb_path => "/data/sincedb/.k8s-clusters-sincedb-s3.file"
    delete => true
  }
}

```

---

<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 20, 2023, 6:17pm UTC](https://discuss.elastic.co/t/logstash-s3-input-not-deleting-files/328386/2 "2023-04-20T18:17:56Z")

</div>

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