Delete versions of each file in an Amazon S3 bucket older than X days

It seems strange to me that after searching everywhere, I did not find a tool to delete all versions of a file older than X days (and not the actual file) of the S3 bucket with version control turned on. I would believe that this is a very common problem, because without it, the buckets will become huge over time.

Is there an existing solution (even commercial)?

If there is no ready-made way, could you please give me some information or give me advice on how to correctly code this in C #? I assume that I should use recursion for this problem.

thank

+5
source share

All Articles