removes unused tasks