To manage your files on AWS S3 bucket, you can configure File Lifecycle Policy, a set of rules that define actions that Amazon S3 applies to a group of objects. Namely, this is used to delete specific files from a bucket after a certain period.
Setting up a File
...
Lifecycle Policy
You can set scheduled deletion of files from your S3 bucket.
...
Required role: Can access File lifecycle policies page (The access to this page is role-based).
...
Click “Add “Add lifecycle policy” policy” at the bottom left corner of the page
Add Policy description
Select Storage typeStorage type (Currently only AWS S3 is supported)
Action type (Currently only Delete action is supported)Select when the Policy starts
Note: if you select to start the policy will startafter order status is closed, it will activate only after the order changes its status to Closed.
...
5. Select files the policy will apply to.
Please note, You can either select all or narrow down the files range by choosing Selection
...
File Lifecycle Policy can be applied to files across multiple S3 buckets.
The following permissions are required for IAM user defined in TM (the AWS Access Key ID)
...