delete one file and repair another