removing files not valid