Using Wasabi S3 compatible storage with a versioned bucket with unlimited retention. Unfortunately although Wasabi is S3 compatible, you can't set lifecycle rules on versioned buckets like you can with Amazon.
So what I want to do is to write a script to cycle through my bucket (recursively) and if the delete marker is more than X days old, I want to delete the delete marker plus all previous versions of that file. If there is no delete marker I don't want to touch the file at all, and if the delete marker is newer than X days old I don't want to touch it.
Any suggestions or help would be appreciated - I could not find much on this other than using the bucket lifecycle rules (unfortunately not an option on Wasabi)
This resource provides information on a retention period after creation with an auto delete option.It seems you are incorrect about it being unsupported by Wasabi.
These are the docs which I found these excerpts from: https://wasabi.com/help/docs/
A step by step guide: https://wasabi.com/wp-content/themes/wasabi/docs/User_Guide/topics/Enabling_Compliance.htm
Hope this helps friend.