Finish deleting task with index given