Remove unused task and paths