Automated task deletion

I want to build in some automated housekeeping on tasks, ones which after completion are no longer relevant. So I've added a field in the task module which is ticked to say it can go when complete and that's fine.

I've gone to create a process definition built the logic, but, I can't figure out how to delete the task, is this a limitation of process definitions?

Thanks