remove all invalid files