delete external file if not valid