How to completely uninstall a WDM driver

Hi All,

I am trying to write a program to uninstall the WDM driver. The
SetupDiRemoveDevice just remove the device from the Device Manager and
some registry keys. But it still keep the inf file. I want to complete
remove the driver including the inf file for the driver rollback. The old
version driver is NOT a WDM driver, it is NT4 driver. So I don’t want the
W2k to load the WDM again. If I use DeleteFile to delete the inf, I got
ACCESS_DENIED from GetLastError, but I can delete it from the explorer.
Is there a setup
api to delete the inf or other better solution?
Thanks a lot!

William