Remove unused tasks