Live TV recording retention or clean up of recorded episodes

Hi all,

I have recently moved from WMC and to Kodi with Next PVR as my backend for recording.

WMC had a great feature where it would manage my disk space and remove the oldest TV recordings.

I noticed that Next PVR has a feature called Keep episodes – which you can set when you record a series.

I wanted to ask if there was a way for Kodi to delete the recordings or set a retention period for recordings like 10 or 20 days.

I am sure i can find a script to do this however I dont think delete recording files will update Kodi?

Any advice on how this could be done would be great

Thanks