Deleting files

I have a problem. I have to delete around 40 thousand files each of ~5k in
size in my project every time. Is there any better way of deleting them? I
am working on windows 2000 and it is damn slow. I want to write a small
application to automate this. Any Pointers or Sample code??

Your help will be highly appreciated.
Regards
Cutti