When I try to delete a file occurs the following exception:
The process cannot access the file \'\' because it is being used by another process.<
You can P/Invoke the Windows MoveFileEx function, and use the MOVEFILE_DELAY_UNTIL_REBOOT flag, with a NULL destination name. This will delete the file when you reboot.