Remove the created file if the transfer has been successful.