Smartrule for deleting oldest 5 files in a group before moving over a file?

Hi all, I have this simple Devonthink smartrule

which looks for my daily music content backups (just a list) and moves it to a Devonthink group:

I wonder if there is a way to only keep the 5 most recent files in that group so when I move the new daily file it auto deletes old ones and keeps the latest 5?

thx a lot!


One possibility might be to use a daily smart rule which deletes files older than 5 days.


thx so much @cgrunenberg!