deleting invalid file