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)