# Eliminazione automatica dei vecchi file dal backup S3?

**URL:** https://meta.discourse.org/t/s3-back-up-auto-delete-of-old-files/83655
**Category:** Support
**Created:** [23 Marzo 2018, 2:37pm UTC](https://meta.discourse.org/t/s3-back-up-auto-delete-of-old-files/83655 "2018-03-23T14:37:33Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [23 Marzo 2018, 2:37pm UTC](https://meta.discourse.org/t/s3-back-up-auto-delete-of-old-files/83655/1 "2018-03-23T14:37:33Z")

</div>

Does Discourse also send a deletion request to S3 to keep the number of back-ups limited to the number requested, or does this have to be done manually?

My site is keeping my back-ups to the last 5, but this isn’t reflected on S3 (they are just building up) and I’m wondering if I’ve messed up the permissions on Amazon …

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [23 Marzo 2018, 3:40pm UTC](https://meta.discourse.org/t/s3-back-up-auto-delete-of-old-files/83655/2 "2018-03-23T15:40:57Z")

</div>

One solution may be to use object expiration on Amazon, as described here:

> **[Lifecycle configuration elements - Amazon Simple Storage Service](https://docs.aws.amazon.com/AmazonS3/latest/userguide/intro-lifecycle-rules.html)**
>
> Learn about the elements of an Amazon S3 Lifecycle configuration.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [8 Giugno 2024, 12:37pm UTC](https://meta.discourse.org/t/s3-back-up-auto-delete-of-old-files/83655/3 "2024-06-08T12:37:43Z")

</div>

Questo argomento è stato chiuso automaticamente dopo 2268 giorni. Non sono più consentite nuove risposte.
