Letting users access call recordings for their extensions

What’s the best way to purge old calls?

I found the following comment from 2020, is the script you mentioned still the best way to do this?