Under Windows 7 it is seems somehow necessary to close the first, before deleting the file.