delete target file before copying