Delete target file before renaming.