winflag delete funktion