Delete while loop