Delete do-while-Funktion(Puffer cleaning)