OK, purgeactivity option added. A bit simpler than what you suggested, Grendel, but I hope this will be enough. Let me know if there is anything more you need... and remember that it is *really* easy to customize things
PHP Code:
site purgeactivity all
Remove all data more than 30 days old
site purgeactivity all 100
Remove all data more than 100 days old
site purgeactivity all 0
Remove all data
site purgeactivity ioFTPD
Remove all data for user ioFTPD that is more than 30 days old
site purgeactivity ioFTPD 0
Remove all data for user ioFTPD