@Jawoy did you manage to get this to work? I'm trying to same with .NET8 but the old log files are not getting deleted when I set the retainedFileTimeLimit config.
Following is the config value that I tried. "retainedFileTimeLimit": "00:05:00"
I could not find any serilog documentation around retainedFileTimeLimit feature which is very disappointing.