There is no direct way to purge the activity log. Usually the activity logs is purged on the basis of the tickets that relates to those tickets. So in that sense the purge of the activity log is in the context or in relation to the inactive tickets.
I'm not too sure about the events though....this is something I would have to check as I do not have an answer from the top of my head yet ;-)
Regards,
Brian