Hi,
I have great experience in creating DLL's for the Windows Platform using C/C++. I can definitely help you create a DLL, that checks the existence of file and deletes it if necessary, based on some conditions, that you will mention. But, will you please tell me, whether this file is passed to the DLL, via a main program, or it's path is hard coded within the DLL. I am very much eager to know the exact details of your project. Looking forward to meet you in chat.
Best Regards,
Aravind A