Sometimes file names are determined at installation time. A generic name file is copied in until the file name is known. Once it is known, it is renamed. However, if the name you rename it to already exists in that directory, it will not successfully rename the file. How can I delete the old file before renaming the generic file?