P.S. Another option would be to "name" the new file as the olde file and force a delete via your upload code.