change file local & remove target file