File Lifecycle Policy (S3 file deletion)
Overview
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.
From: Administrator > Web Administrator > Storage Servers > File Lifecycle Policies button.
Required role: Can access File lifecycle policies page (The access to this page is role-based).
Click “Add lifecycle policy” at the bottom left corner of the page
Add Policy description
Storage type (Currently only AWS S3 is supported)
Action type (Currently only Delete action is supported)Select when the Policy starts.
Two options are available:
after file upload
The file will be deleted the selected amount of days after the file is uploaded.
The deletion date of files made available in other orders will be independent of the original files.
after order status is closed
The file will be deleted the selected amount of days 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):