alternative solution - needs some improvements
delte *~