Script to Auto Delete Closed Tasks

Script to Auto Delete Closed Tasks

Hi

Is it possible to create a rule that will auto delete any closed tasks as i always forget to delete these or if they could be automatically deleted after say 3 days as a fail safe?.  They just clutter up the accounts and elongate the page.

Thanks