This function deletes the source file even if the file is not copied. I would like the ability to delete the files that were successfully copied and keep the files if they were not copied (for my situation these represent a duplication error and I need to determine why). My current workaround is using robocopy with option /MOV /XC /XN /XO. I can then move these files to an error directory for further research.