How to configure life cycle to AWS S3 repo folders

While creating a new folder in AWS S3 bucket, want to configure a life cycle to that folder to get it automatically deleted after certain days. Is there a way to configure that from Pega CDH?

@korus2 Hi, We implemented Policies at Bucket level to delete files older than 24 hours, this cannot be done straightforward from Pega CDH, having said that you can write Job Schedulers and leverage D_pxDelete by passing Repository name and FilePath to delete files recursively or complete folder (by providing path as root folder)