You might want to look at my UpdateFileOnReboot() UDF which enables you to replace in-use-files during a reboot. With a slight modification, it could also be used to delete an in-use-file.
_________________________
There are two types of vessels, submarines and targets.